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

link error in building excustobjs_dll in vc8
link error in building excustobjs_dll in vc8
errors are:
creating library .\../../../../../out/vc8/excustobjs_dll_dbg/excustobjs.lib and object .\../../../../../out/vc8/excustobjs_dll_dbg/excustobjs.exp
drxdebugcmds.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odidfiler::seek(long,enum oddb::filerseektype)" (?seek@odidfiler@@uaexjw4filerseektype@oddb@@@z)
drxdebugcmds.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odidfiler::tell(void)const " (?tell@odidfiler@@ubekxz)
.
i also get link errors such as
dbwrap.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
does anybody know which libs i need include?
i am using vc8md.
thanks,
yli
build allexamplesdll.sln of dwgdirect 2.1.1 in msvc8
i am trying to build allexamplesdll.sln in msvc8. i got many link errors. do not know who to build the samples.
creating library ../../../../../exe/vc8/release/odreadexdll.lib and object ../../../../../exe/vc8/release/odreadexdll.exp
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::tell(void)" (?tell@odflatmemstream@@uaekxz)
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::length(void)" (?length@odflatmemstream@@uaekxz)
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::seek(long,enum oddb::filerseektype)" (?seek@odflatmemstream@@uaekjw4filerseektype@oddb@ @@z)
exundocontroller.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odflatmemstream::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odflatmemstream@@uaexpavodstreambuf@@ kk@z)
exundocontroller.obj : error lnk2001: unresolved external symbol "protected: virtual void __thiscall odflatmemstream::append(unsigned long)" (?append@odflatmemstream@@maexk@z)
exundocontroller.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall odflatmemstream::copydatato(class odstreambuf *,unsigned long,unsigned long)" (__imp_?copydatato@odflatmemstream@@uaexpavodstrea mbuf@@kk@z) referenced in function "public: virtual unsigned long __thiscall exundocontrollerpdata(class odstreambuf *)" (?popdata@exundocontroller@@uaekpavodstreambuf@@@z )
exundocontroller.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: virtual unsigned long __thiscall odflatmemstream::tell(void)" (__imp_?tell@odflatmemstream@@uaekxz) referenced in function "public: virtual unsigned long __thiscall exundocontrollerpdata(class odstreambuf *)" (?popdata@exundocontroller@@uaekpavodstreambuf@@@z )
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
../../../../../exe/vc8/release/odreadexdll.exe : fatal error lnk1120: 11 unresolved externals
you don't have to do anything extra..
....for building the examples. build should be possible without any changes.
-praveen
i checked 2.1.1 msvc8 allexamplesdll. it works.
be sure to unpack into empty folder to avoid mixture of different dd versions.
sergey slezkin
i installed in an empty directory and did not make any changes in the sample projects. i still get all the link errors.
which libs are needed to solve the symbol of odstreambuf::tell, etc.
dbfiller.obj : error lnk2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall odflatmemstream::init(void *,unsigned long,unsigned long)" (__imp_?init@odflatmemstream@@qaexpaxkk@z) referenced in function "class odsmartptr<class oddbole2frame> __cdecl createfromfile(class odstring const &)" (?createfromfile@@ya?av?$odsmartptr@voddbole2frame @@@@abvodstring@@@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::tell(void)" (?tell@odflatmemstream@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::length(void)" (?length@odflatmemstream@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odflatmemstream::seek(long,enum oddb::filerseektype)" (?seek@odflatmemstream@@uaekjw4filerseektype@oddb@ @@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odflatmemstream::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odflatmemstream@@uaexpavodstreambuf@@ kk@z)
dbfiller.obj : error lnk2001: unresolved external symbol "protected: virtual void __thiscall odflatmemstream::append(unsigned long)" (?append@odflatmemstream@@maexk@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
dbfiller.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
odwriteex.obj : error lnk2001: unresolved external symbol "public: virtual void __thiscall odstreambuf::copydatato(class odstreambuf *,unsigned long,unsigned long)" (?copydatato@odstreambuf@@uaexpav1@kk@z)
../..
thanks,
yli
odstreambuf functions are in dd_root but:
today i unpacked 2.1.1 zips into empty folder.
opened allexamplesdll.sln in projectfiles\win32\msvc8 folder
made allexamples the start project
set active configuration to release.
build solution.
set configuration to debug
build solution.
it works.
sergey slezkin
btw, i only downloaded the 3 zip files and installed them into a new directory:
dd_nonlibs.zip
dd_vc8.zip
dd_vc8dbg.zip
anything i miss?
thanks,
yli
be sure you have no old version location among vc++ directories set in vc8 paths (include, libs).
yesterday you wrote you use 2.1.1
i checked both 2.1.1 and 2.2.0
sergey slezkin
i used dumpbin dd_root_dll.lib to try to find out the export symbol. here is what i found:
dumpbin shows that
oduint32 is defined as __int64
dumpbin results:
?tell@odflatmemstream@@uae_kxz (public: virtual unsigned __int64 __thiscall odflatmemstream::tell(void))
?tell@odstreambuf@@uae_kxz (public: virtual unsigned __int64 __thiscall odstreambuf::tell(void))
?textextentsbox@odgicontext@@uaexabvodgitextstyle@ @pbghkaavodgepoint3d@@2pav3@@z (public: virtual void __thiscall
but my link errors show oduint32 is defined as long:
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::tell(void)" (?tell@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::length(void)" (?length@odstreambuf@@uaekxz)
odfilebuf.obj : error lnk2001: unresolved external symbol "public: virtual unsigned long __thiscall odstreambuf::seek(long,enum oddb::filerseektype)" (?seek@odstreambuf@@uaekjw4filerseektype@oddb@@@z)
should oduint32 not be defined to be __int64 because we are building for win32?
i think i need to set some environment variables. what are the variables i need to set?
btw, i am using vc8sp1 beta.
hi, sergey,
would you check what is ulong_max defined in your computer?
in my computer it is defined as:
#define ulong_max 0xfffffffful /* maximum unsigned long value */
in c:\program files\microsoft visual studio 8\vc\include\limits.h
thanks,
yawei
last edited by yli; 15th december 2006 at 10:11 amfff">.
in dd 2.2 tell() seek() length() use oduint64 (previously stream length and positions were oduint32.
the effect you have means that you use object files which were compiled with old dwgdirect version. and you link them with new dd.
check include folders you use and be sure to make rebuild all in your project. no need in defining oduitn32 as _int64 :-)
sergey slezkin
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

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


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


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