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:

ddbdatabaseimpl_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:

ddbdatabase_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.