getting lnk2001 errors in vc2002
getting lnk2001 errors in vc2002
hi
i am currently using dwgdirect v1.11 vc2002md library in .net 2002 and i am getting a lot of linking errors. i am linking with vc2002md library. not sure if it has to be ordered in any particular way.
thanks
su ming
dwggirasterimage.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall
odrxrasterservices::~odrxrasterservices(void)" (__imp_??1odrxrasterservices@@uae@xz) referenced in function "public: virtual
__thiscall exrastermodule::~exrastermodule(void)" (??1exrastermodule@@uae@xz)
dwggirasterimage.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: __thiscall
odrxrasterservices:

drxrasterservices(void)" (__imp_??0odrxrasterservices@@qae@xz) referenced in function "public: __thiscall
exrastermodule::exrastermodule(void)" (??0exrastermodule@@qae@xz)
dwghostappservices.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: static class odsmartptr<class
odhatchpatternmanager> __cdecl odhatchpatternmanager::createobject(void)"
(__imp_?createobject@odhatchpatternmanager@@sa?av? $odsmartptr@vodhatchpatternmanager@@@@xz) referenced in function "public:
virtual class odhatchpatternmanager * __thiscall cdwghostappservices:

atternmanager(void)"
(?patternmanager@cdwghostappservices@@uaepavodhatc hpatternmanager@@xz)
dwghostappservices.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall
odstring::getalloclength(void)const " (__imp_?getalloclength@odstring@@qbehxz) referenced in function "public: virtual bool
__thiscall cdwghostappservices::ttffilenamebydescriptor(class odttfdescriptor const &,class odstring &)"
(?ttffilenamebydescriptor@cdwghostappservices@@uae _nabvodttfdescriptor@@aavodstring@@@z)
dwgsystemservices.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: __thiscall
oddbsystemservices:

ddbsystemservices(void)" (__imp_??0oddbsystemservices@@qae@xz) referenced in function "public: __thiscall
cdwgsystemservices::cdwgsystemservices(void)" (??0cdwgsystemservices@@qae@xz)
dwgsystemservices.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall
oddbsystemservices::~oddbsystemservices(void)" (__imp_??1oddbsystemservices@@uae@xz) referenced in function "public: virtual
__thiscall cdwgsystemservices::~cdwgsystemservices(void)" (??1cdwgsystemservices@@uae@xz)
opendwgexport.obj : error lnk2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall
oddbsystemservices::~oddbsystemservices(void)" (__imp_??1oddbsystemservices@@uae@xz)
opendwgload.obj : error lnk2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall
oddbsystemservices::~oddbsystemservices(void)" (__imp_??1oddbsystemservices@@uae@xz)
opendwgload.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: __thiscall odcrypt:

dcrypt(void)"
(__imp_??0odcrypt@@qae@xz) referenced in function "public: __thiscall odwinntcrypt:

dwinntcrypt(void)"
(??0odwinntcrypt@@qae@xz)
opendwgload.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall
odcrypt::~odcrypt(void)" (__imp_??1odcrypt@@uae@xz) referenced in function "public: virtual __thiscall
odwinntcrypt::~odwinntcrypt(void)" (??1odwinntcrypt@@uae@xz)
_toolkit_in_dll_
if you are trying to use the dwgdirect libraries in dll form, you need to have the following preprocessor definition: _toolkit_in_dll_
not sure if that is your issue, but that is a relatively undocumented gotcha.
nope, i already have _toolkit_in_dll_.
thanks for the hint though