i am trying to build a wxWidgets dll and get the following error:
Code: Select all
1>bundle.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class libdf::DTube * & __thiscall libdf::ArrayOfDTube::Item(unsigned int)const " (__imp_?Item@ArrayOfDTube
now, ArrayOfDTube is defined as
Code: Select all
WX_DEFINE_EXPORTED_ARRAY(DTube *, ArrayOfDTube);
why this error then?class __declspec(dllexport) DTube
all needed files are within the same unit, so no additional libs have to be linked, right?
thanx in advance!
ps: i avoid posting the full code since the file has >1000 lines.