G
Gawel
Hajo,
I have two dlls, both of them are compiled with /clr switch.
In first dll project I have managed and unmanaged classes.
One of the unmanaged I would like to use outside therefore
I marked it as follows:
class __declspec(dllexport) Terrain
{
public:
void foo(){}
};
In sceond dll projcet I added refrenece to the first dll and
included header like this:
class __declspec(dllimport) Terrain
{
public:
void foo();
};
Then If I use object of Terrain class I get
LNK2001: unresolved external symbol "public: __thiscall
Terrain::Terrain(int,int)".
Any idea ?
thanks in advance
Gawel
I have two dlls, both of them are compiled with /clr switch.
In first dll project I have managed and unmanaged classes.
One of the unmanaged I would like to use outside therefore
I marked it as follows:
class __declspec(dllexport) Terrain
{
public:
void foo(){}
};
In sceond dll projcet I added refrenece to the first dll and
included header like this:
class __declspec(dllimport) Terrain
{
public:
void foo();
};
Then If I use object of Terrain class I get
LNK2001: unresolved external symbol "public: __thiscall
Terrain::Terrain(int,int)".
Any idea ?
thanks in advance
Gawel