![]() |
【转帖】problem compiling odamfcappdll 9debug version0
problem compiling odamfcappdll (debug version)
problem compiling odamfcappdll (debug version) hi, i tried to build odamfcappdll version to read dwg files in vc 2003.i am able to successfully comple release version.but i am facing problem with debug version. debug c/c++->code generation->mdd i am including dd_vc2003dbg libraries(\dd_vc2003dbg\lib\vc2003mdd) for debug version release c/c++->code generation->md i am including dd_vc2003\lib\vc2003md libraries for release version. i get following errors for debug version: link : warning lnk4199: /delayload:oleacc.dll ignored; no imports found from oleacc.dll dwgdoctemplate.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: __thiscall odwstring::~odwstring(void)" (__imp_??1odwstring@@qae@xz) referenced in function "public: virtual class cdocument * __thiscall cdwgdoctemplate::opendocumentfile(char const *,int)" (?opendocumentfile@cdwgdoctemplate@@uaepavcdocumen t@@pbdh@z) odamfcapp.obj : error lnk2001: unresolved external symbol "__declspec(dllimport) public: __thiscall odwstring::~odwstring(void)" (__imp_??1odwstring@@qae@xz) odamfcappdoc.obj : error lnk2001: unresolved external symbol "__declspec(dllimport) public: __thiscall odwstring::~odwstring(void)" (__imp_??1odwstring@@qae@xz) passworddlg.obj : error lnk2001: unresolved external symbol "__declspec(dllimport) public: __thiscall odwstring::~odwstring(void)" (__imp_??1odwstring@@qae@xz) exgirasterimage.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) void __cdecl _odrx_check_binary_compatibility_2(void)" (__imp_?_odrx_check_binary_compatibility_2@@yaxxz) referenced in function "class odsmartptr<class odrxmodule> __cdecl odrxcreatemoduleobject(void)" (?odrxcreatemoduleobject@@ya?av?$odsmartptr@vodrxm odule@@@@xz) ........... exhostappservices.obj : error lnk2001: unresolved external symbol "public: virtual class odsmartptr<class oddbdatabase> __thiscall oddbhostappservices::recoverfile(class odstreambuf *,class oddbauditinfo *,class odwstring const &)" (?recoverfile@oddbhostappservices@@uae?av?$odsmart ptr@voddbdatabase@@@@pavodstreambuf@@pavoddbauditi nfo@@abvodwstring@@@z) odamfcapp.obj : error lnk2001: unresolved external symbol "public: virtual class odsmartptr<class oddbdatabase> __thiscall oddbhostappservices::recoverfile(class odstreambuf *,class oddbauditinfo *,class odwstring const &)" (?recoverfile@oddbhostappservices@@uae?av?$odsmart ptr@voddbdatabase@@@@pavodstreambuf@@pavoddbauditi nfo@@abvodwstring@@@z) exhostappservices.obj : error lnk2001: unresolved external symbol "public: virtual class odsmartptr<class oddbdatabase> __thiscall oddbhostappservices::readfile(class odstreambuf *,bool,bool,class odwstring const &)" (?readfile@oddbhostappservices@@uae?av?$ winntcrypt.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall odwstring::getlength(void)const " (__imp_?getlength@odwstring@@qbehxz) referenced in function "public: virtual bool __thiscall odwinntcrypt::initialize(class odsecurityparams const &)" (?initialize@odwinntcrypt@@uae_nabvodsecurityparam s@@@z) winntcrypt.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: __thiscall odstring::odstring(class odwstring const &)" (__imp_??0odstring@@qae@abvodwstring@@@z) referenced in function "public: virtual bool __thiscall odwinntcrypt::initialize(class odsecurityparams const &)" (?initialize@odwinntcrypt@@uae_nabvodsecurityparam s@@@z) ../../../../../exe/vc2003/debug/odamfcappdll.exe : fatal error lnk1120: 30 unresolved externals build log was saved at "file://d:\dwg_data\library_example_dwg\1november\out\vc20 03\odamfcapp_dll_dbg\buildlog.htm" odamfcappdll - 42 error(s), 3 warning(s) thanks looks like you missed to link with some modules. for instance, adding dd_root_dll.lib to link list should prevent at least unresolved externals that are related to odwstring. sincerely yours, george udov |
所有的时间均为北京时间。 现在的时间是 08:49 AM. |