几何尺寸与公差论坛------致力于产品几何量公差标准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-07, 05:50 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】unresolved G-pdesc Linking Dll Libs

unresolved g_pdesc linking dll libs
unresolved g_pdesc linking dll libs
building the test app odamfcappdll works fine. but when i try to link my own app with dll libs (v. 1.10) i get lots of classxxxx::g_pdesc unresolved (see below). what should i check out in my build setup?
i have these defines active when i compile:
#define _toolkit_in_dll_
#define oda_db_exports
#define odafirst_dll_exports
#define odw_ge_exports
#define oda_br_exports
-rune
utldxf.lib(exodstorage.obj) : error lnk2001: unresolved external symbol "public: static class odrxclass * odrxclass::g_pdesc" (?g_pdesc@odrxclass@@2pav1@a)
utldxf.lib(exsystemservices.obj) : error lnk2001: unresolved external symbol "public: static class odrxclass * odstreambuf::g_pdesc" (?g_pdesc@odstreambuf@@2pavodrxclass@@a)
utldxf.lib(dwgout.obj) : error lnk2001: unresolved external symbol "public: static class odrxclass * odrxiterator::g_pdesc" (?g_pdesc@odrxiterator@@2pavodrxclass@@a)
utldxf.lib(exgirasterimage.obj) : error lnk2001: unresolved external symbol "public: static class odrxclass * odgidrawable::g_pdesc" (?g_pdesc@odgidrawable@@2pavodrxclass@@a)

check if you forgot to link with dd_root library.
sincerely yours,
george udov
> check if you forgot to link with dd_root library.
i have dd_root_dll.lib in the link file.
my hunch is that the reference to...
"public: static class odrxclass * everyclassintoolkit::g_pdesc"
...is generated incorrectly at compile time. it is generated to reference a e.g. a non-dll implementation of the function. is there any defines or compile flags that controls how this function reference is layed out in the code?
-rune

you shouldn't define
#define oda_db_exports
#define odafirst_dll_exports
#define odw_ge_exports
#define oda_br_exports
these symbols in your project.
btw, odamfcappdll doesn't define them.
sincerely yours,
george udov

>you shouldn't define
>
>#define oda_db_exports
>#define odafirst_dll_exports
>#define odw_ge_exports
>#define oda_br_exports
>
>these symbols in your project.
removing these defines proved to be significant.
it builds correctly now!
-rune
same problem
hi,
i have the same problem, but i don't use this defines...

i have only remove the static libs and try to use the dynamic libs.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】linking in dll yang686526 DirectDWG 0 2009-05-06 05:07 PM
【转帖】error while linking using mfc static library vc 96.00 yang686526 DirectDWG 0 2009-05-05 09:49 AM
【转帖】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


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


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