几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】cannot build vc2003 sample project odwriteex-dll in version (http://www.dimcax.com/hust/showthread.php?t=15346)

yang686526 2009-05-04 05:26 PM

【转帖】cannot build vc2003 sample project odwriteex-dll in version
 
cannot build vc2003 sample project odwriteex_dll in version
cannot build vc2003 sample project odwriteex_dll in version 2.2.0
when i try to build the project vc2003 odwriteex_dll, i got the following link errors:
dd_key.lib : error lnk2005: "unsigned short const * const acad_section_manager" (?acad_section_manager@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_visualstyle" (?acad_visualstyle@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_tablestyle" (?acad_tablestyle@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_material" (?acad_material@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_color" (?acad_color@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_plotsettings" (?acad_plotsettings@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_mlinestyle" (?acad_mlinestyle@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_layout" (?acad_layout@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_plotstylename" (?acad_plotstylename@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "unsigned short const * const acad_group" (?acad_group@@3pbgb) already defined in dd_key.lib
dd_key.lib : error lnk2005: "public: virtual class oddbkey * __thiscall oddbhostappservices::key(void)const " (?key@oddbhostappservices@@ubepavoddbkey@@xz) already defined in dd_key.lib
dd_key.lib : error lnk2005: "public: virtual enum odresult __thiscall oddbkey::oddbdatabaseimpl_dwginfields(class oddbdatabaseimpl *,class oddbdwgfiler &,class oddbheaderloadinfo &)" (?oddbdatabaseimpl_dwginfields@oddbkey@@uae?aw4odr esult@@pavoddbdatabaseimpl@@aavoddbdwgfiler@@aavod dbheaderloadinfo@@@z) already defined in dd_key.lib
dd_key.lib : error lnk2005: "public: virtual void __thiscall oddbkey::oddbdatabase_dwgoutfields(class oddbdatabase const *,class oddbdwgfiler *)" (?oddbdatabase_dwgoutfields@oddbkey@@uaexpbvoddbda tabase@@pavoddbdwgfiler@@@z) already defined in dd_key.lib
also other dll sample projects which are linked to dd_key.lib having the same link errors.
any ideas how to fix it?
thanks.
i used 2.02 binary release, opened \projectfiles\win32\msvc2003\allexamplesdll.sln, and build odwriteex successfully. make sure you unpacked libraries (dd_nonlibs.zip, dd_vc2003.zip, dd_vc2003dbg.zip) in the clean folder, to avoid mixing with previous versions.
vladimir
if you put the library in folder "c:\program files\dwgdirect\", then you got the link errors. if you put the library in folder "c:\dwgdirect\", the project is built ok. it is not ok for the project path name with a space.


所有的时间均为北京时间。 现在的时间是 11:07 PM.