Подписывайтесь на наш Telegram и не пропускайте важные новости! Перейти

Static extern

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
24 Мар 2018
Сообщения
23
Реакции
1
Hello firstly xD.
So, the problem i have is the following:

I have inside Ah
Код:
Expand Collapse Copy
 namespace A
{
   extern std :: string e ();
   extern std :: string d ();
} 
[/ CODE]
Inside [B] A.cpp [/ B]
[CODE] #include "main.h"
#include "Ah"
namespace A
{
   std :: string e ()
   {
     * code;
   }
   std :: string d ()
   {
    * code;
   }
} [/ CODE]

The code is used into [B] C.cpp [/ B] as this:
[CODE] void C :: something ()
{
   std :: string ctime = A :: c ();

   std :: string dtime = A :: d ();
} [/ CODE]


If i'l try to compile as this, im getting "unresolved external" errors. [/ CODE]
 
Назад
Сверху Снизу