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


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-04, 05:26 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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: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.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】batter faqgetting started somewhere yang686526 DirectDWG 0 2009-05-04 04:39 PM
【转帖】DllMain详解 huangyhg vc编程 0 2009-03-22 11:12 PM
【转帖】dll学习(资料收集) huangyhg vc编程 0 2008-05-17 09:24 PM
最难清除木马 Dll木马揭秘 huangyhg vc编程 0 2007-04-12 07:31 PM
regsvr32.exe的使用 cam 论坛管理 0 2007-02-27 11:07 PM


所有的时间均为北京时间。 现在的时间是 06:31 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多