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

linker error
linker error
hello,
i am working on a program that needs to be switched from opendwg to dwgdirect. i am trying to build a small application to familiarize myself with dwgdirect before starting work on the other project by i get some linker errors. i guess i am not including some .lib file - i have tried including all the libs that were included in the singledoc example but it doesn't work. the errors i get are these:
code:
link : warning lnk4199: /delayloadleacc.dll ignored; no imports found from oleacc.dll
exhostappservices.obj : error lnk2019: unresolved external symbol __imp__regenumvaluea@32 referenced in function "public: virtual bool __thiscall exhostappservices::ttffilenamebydescriptor(class odttfdescriptor const &,class odstring &)" (?ttffilenamebydescriptor@exhostappservices@@uae_nabvodttfdescriptor@@aavodstring@@@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2001: unresolved external symbol __imp__regenumvaluea@32
exhostappservices.obj : error lnk2019: unresolved external symbol __imp__regclosekey@4 referenced in function "public: virtual bool __thiscall exhostappservices::ttffilenamebydescriptor(class odttfdescriptor const &,class odstring &)" (?ttffilenamebydescriptor@exhostappservices@@uae_nabvodttfdescriptor@@aavodstring@@@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2001: unresolved external symbol __imp__regclosekey@4
exhostappservices.obj : error lnk2019: unresolved external symbol __imp__regqueryvalueexa@24 referenced in function "public: virtual bool __thiscall exhostappservices::ttffilenamebydescriptor(class odttfdescriptor const &,class odstring &)" (?ttffilenamebydescriptor@exhostappservices@@uae_nabvodttfdescriptor@@aavodstring@@@z)
exhostappservices.obj : error lnk2019: unresolved external symbol __imp__regopenkeyexa@20 referenced in function "public: virtual bool __thiscall exhostappservices::ttffilenamebydescriptor(class odttfdescriptor const &,class odstring &)" (?ttffilenamebydescriptor@exhostappservices@@uae_nabvodttfdescriptor@@aavodstring@@@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2001: unresolved external symbol __imp__regopenkeyexa@20
dd_vc2003md_root.lib(rxinit.obj) : error lnk2019: unresolved external symbol __imp__cotaskmemfree@4 referenced in function "public: virtual class odstring __thiscall odrxsystemservices::createguid(void)" (?createguid@odrxsystemservices@@uae?avodstring@@xz)
dd_vc2003md_root.lib(rxinit.obj) : error lnk2019: unresolved external symbol __imp__stringfromclsid@8 referenced in function "public: virtual class odstring __thiscall odrxsystemservices::createguid(void)" (?createguid@odrxsystemservices@@uae?avodstring@@xz)
dd_vc2003md_root.lib(rxinit.obj) : error lnk2019: unresolved external symbol __imp__cocreateguid@4 referenced in function "public: virtual class odstring __thiscall odrxsystemservices::createguid(void)" (?createguid@odrxsystemservices@@uae?avodstring@@xz)
dd_vc2003md_root.lib(cmentitycolor.obj) : error lnk2019: unresolved external symbol __imp__deleteobject@4 referenced in function "public: __thiscall odpalette::~odpalette(void)" (??1odpalette@@qae@xz)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2001: unresolved external symbol __imp__deleteobject@4
dd_vc2003md_root.lib(cmentitycolor.obj) : error lnk2019: unresolved external symbol __imp__getnearestpaletteindex@8 referenced in function "public: int __thiscall odpalette::lookupindex(unsigned long)" (?lookupindex@odpalette@@qaehk@z)
dd_vc2003md_root.lib(cmentitycolor.obj) : error lnk2019: unresolved external symbol __imp__createpalette@4 referenced in function "public: int __thiscall odpalette::lookupindex(unsigned long)" (?lookupindex@odpalette@@qaehk@z)
msvcrt.lib(crtexew.obj) : error lnk2019: unresolved external symbol _winmain@16 referenced in function _winmaincrtstartup
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__getglyphoutlinea@28 referenced in function "int __stdcall effexamineproc(struct tagenumlogfonta *,struct tagnewtextmetrica *,long,long)" (?effexamineproc@@yghpautagenumlogfonta@@pautagnewtextmetrica@@jj@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__getglyphoutlinew@28 referenced in function "int __stdcall effexamineproc(struct tagenumlogfonta *,struct tagnewtextmetrica *,long,long)" (?effexamineproc@@yghpautagenumlogfonta@@pautagnewtextmetrica@@jj@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__gettextmetricsa@8 referenced in function "int __stdcall effexamineproc(struct tagenumlogfonta *,struct tagnewtextmetrica *,long,long)" (?effexamineproc@@yghpautagenumlogfonta@@pautagnewtextmetrica@@jj@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__selectobject@8 referenced in function "int __stdcall effexamineproc(struct tagenumlogfonta *,struct tagnewtextmetrica *,long,long)" (?effexamineproc@@yghpautagenumlogfonta@@pautagnewtextmetrica@@jj@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__createfontindirecta@4 referenced in function "int __stdcall effexamineproc(struct tagenumlogfonta *,struct tagnewtextmetrica *,long,long)" (?effexamineproc@@yghpautagenumlogfonta@@pautagnewtextmetrica@@jj@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__getfontdata@20 referenced in function "public: virtual unsigned long __thiscall odtruetypefont::getfontdata(unsigned long,unsigned long,void *,unsigned long)const " (?getfontdata@odtruetypefont@@ubekkkpaxk@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__getcharacterplacementw@24 referenced in function "public: void __thiscall odtruetypefont::getglyhpindexes(class odarray<unsigned short,class odobjectsallocator<unsigned short> > const &,class odarray<unsigned short,class odobjectsallocator<unsigned short> > &)" (?getglyhpindexes@odtruetypefont@@qaexabv?$odarray@gv?$odobjectsallocator@g@@@@aav2@@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__deletedc@4 referenced in function "public: __thiscall odttffontdata::~odttffontdata(void)" (??1odttffontdata@@qae@xz)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__getfontlanguageinfo@4 referenced in function "public: virtual enum odresult __thiscall odtruetypefont::initialize(char const *,class odttfdescriptor const &)" (?initialize@odtruetypefont@@uae?aw4odresult@@pbdabvodttfdescriptor@@@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__enumfontfamiliesexa@20 referenced in function "public: virtual enum odresult __thiscall odtruetypefont::initialize(char const *,class odttfdescriptor const &)" (?initialize@odtruetypefont@@uae?aw4odresult@@pbdabvodttfdescriptor@@@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__setmapmode@8 referenced in function "public: virtual enum odresult __thiscall odtruetypefont::initialize(char const *,class odttfdescriptor const &)" (?initialize@odtruetypefont@@uae?aw4odresult@@pbdabvodttfdescriptor@@@z)
dd_vc2003md_gi.lib(odtruetypefont.obj) : error lnk2019: unresolved external symbol __imp__createcompatibledc@4 referenced in function "public: virtual enum odresult __thiscall odtruetypefont::initialize(char const *,class odttfdescriptor const &)" (?initialize@odtruetypefont@@uae?aw4odresult@@pbdabvodttfdescriptor@@@z)
any help would be greatly appreciated. also, is there any documentation that explains what does each library do?
thank you.

it seems something is wrong with _toolkit_in_dll_ macro.
if you're using dll version of dwgdirect, you must define it in your project settings.
if you're using lib version of dwgdirect, you mustn't define it.
sincerely yours,
george udov
thank you for your reply. i am using the lib version of dwgdirect. so far i have only added the lib files to the project and have included some headers (i copied those from odreadex) and tried to compile the project but i got those errors. i have not defined the _toolkit_in_dll_ macro.
you need to link gdi32.lib, ole32.lib and advapi32.lib
vladimir
that did it! thank you!
where are these libraries found?
i'm getting similar linking errors, but i'm using the vc8 libraries. where are these three libraries found? or is my problem related to the version of libraries i'm using. (using visual studio 2005)
thank you
paul
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】link errors in odreadex on visual studio 2005 yang686526 DirectDWG 0 2009-05-06 05:00 PM
【转帖】error when using afx.h yang686526 DirectDWG 0 2009-05-05 09:48 AM
【转帖】error c2664 yang686526 DirectDWG 0 2009-05-05 09:34 AM
【转帖】cant compile odrx-heap-operators90 in rxobject.h yang686526 DirectDWG 0 2009-05-04 05:31 PM
【转帖】2005 link error yang686526 DirectDWG 0 2009-05-04 02:57 PM


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


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