I'm trying to call a function from more then 1 project .
I do the following:
in one project i wrote:
int ChosenPort;
extern int GetPort(){return ChosenPort;}
from another i try to call the function:
int ChosenPort;
ChosenPort=GetPort();
I get a linking error:
error LNK2001: unresolved external symbol _GetPort
please help me if you can.
Thanks heaps.
Aviv.
I do the following:
in one project i wrote:
int ChosenPort;
extern int GetPort(){return ChosenPort;}
from another i try to call the function:
int ChosenPort;
ChosenPort=GetPort();
I get a linking error:
error LNK2001: unresolved external symbol _GetPort
please help me if you can.
Thanks heaps.
Aviv.