![]() |
【转帖】amd64 link error
amd64 link error
amd64 link error i am porting our application from win32 to win64, using dwgdirect 2.6.1. i get the following link error when building on win64 and linking with the amd64mt release build libraries: cadlibintf.obj : error lnk2001: unresolved external symbol "class odrxmodule * __cdecl odrxcreatemoduleobject_for_wingdimodule(class odstring const &)" (?odrxcreatemoduleobject_for_wingdimodule@@yapeavo drxmodule@@aebvodstring@@@z) 1>x64\release\picx7720.dll : fatal error lnk1120: 1 unresolved externals. related code is: odrx_declare_static_module_entry_point(wingdimodul e); odrx_begin_static_module_map() odrx_define_static_application(l"wingdi", wingdimodule) odrx_end_static_module_map() i am linking with these libraries: dd_amd64mt_acisbuilder.lib dd_amd64mt_alloc.lib dd_amd64mt_br.lib dd_amd64mt_breprenderer.lib dd_amd64mt_db.lib dd_amd64mt_dbroot.lib dd_amd64mt_dwfimport.lib dd_amd64mt_ge.lib dd_amd64mt_gi.lib dd_amd64mt_gs.lib dd_amd64mt_jpeg.lib dd_amd64mt_modelergeometry.lib dd_amd64mt_root.lib dd_amd64mt_spatialindex.lib dd_amd64mt_zip.lib dd_amd64mt_zlib.lib gs_wingdi.lib dwftoolkit.lib dwfcore.lib whiptk.lib w3dtk.lib this works fine in win32. please let me know how to resolve this. hi, we havn't here win64 platform, so i cannot test your request right now. did you try with debug or md win64? it will help to understand is the problem only under release or not. also, please, use search with win64 - i found some topics with additional info about win64. they are not related to your current question, but may be helpful too. this was using the mt release libraries. also, please note that i also have this line in the code, but i do not get a warning for this: odrx_define_static_application(l"modelergeometry", modelermodule) has there been any progress on this? i tried it with the debug libraries and i get the same error. i found the problem. since the name of the wingdi library is the same for 32bit vs. 64bit, i was mistakenly picking up the 32bit library that was present in one of the library input directories specified for my project. getting rid of this 32bit version resolves the problem. thanks for your time. hi, i just funished with win64 we havn't problem with linking too. good news, that you found the source of problem. |
所有的时间均为北京时间。 现在的时间是 09:55 AM. |