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

problem with linking the linux sample odreadex
problem with linking the linux sample odreadex
hallo,
i have problem to link odreadex example on suse 9.3 gcc-3.3.5.
i have insert a -m32 parameter to compile on my 64bit machine. but the problem is also on a 32bit machine.
can anyone help ! please ??
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/exservices/exsystemservices.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/exservices/exhostappservices.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/exservices/exundocontroller.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/exservices/odfilebuf.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/odreadex/odreadex.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/odreadex/dbdumper.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/odreadex/exprotocolextension.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/odreadex/giworlddrawdumper.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -c -i../../include -i../../include/gi -i../../include/ge -i../../include/br -i../../include/gs -i../../include/modelergeometry -i../../examples/exservices ../../examples/exservices/exgirasterimage.cpp
g++ -wno-deprecated -doda_linux_x86 -doda_gcc -m32 -o odreadex exsystemservices.o exhostappservices.o exundocontroller.o odfilebuf.o odreadex.o dbdumper.o exprotocolextension.o giworlddrawdumper.o exgirasterimage.o ../../lib/lnxx86/dd_lnxx86_gs.a ../../lib/lnxx86/dd_lnxx86_modelergeometry.a ../../lib/lnxx86/dd_lnxx86_acisrenderer.a ../../lib/lnxx86/dd_lnxx86_br.a ../../lib/lnxx86/dd_lnxx86_acisbuilder.a ../../lib/lnxx86/dd_lnxx86_db.a ../../lib/lnxx86/dd_lnxx86_gi.a ../../lib/lnxx86/dd_lnxx86_ge.a ../../lib/lnxx86/dd_lnxx86_root.a ../../lib/lnxx86/dd_lnxx86_ft.a ../../lib/lnxx86/dd_lnxx86_alloc.a
../../lib/lnxx86/dd_lnxx86_db.a(dbabstractviewportdatafordbviewport .o)(.text+0x2233): in function `oddbabstractviewportdatafordbviewport::viewextent s(odrxobject const*, odgeboundblock3d&) const':
dbabstractviewportdatafordbviewport.cpp: undefined reference to `odrxcreatemoduleobject_for_odgsmoduleobject(char const*)'
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' referenced in section `.rodata' of ../../lib/lnxx86/dd_lnxx86_db.a(dbxrecord.o): defined in discarded section `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' of ../../lib/lnxx86/dd_lnxx86_db.a(dbxrecord.o)
../../lib/lnxx86/dd_lnxx86_db.a(dbabstractviewportdatafordbvptabrec .o)(.text+0x210): in function `oddbabstractviewportdatafordbvptabrec::viewextent s(odrxobject const*, odgeboundblock3d&) const':
dbabstractviewportdatafordbvptabrec.cpp: undefined reference to `odrxcreatemoduleobject_for_odgsmoduleobject(char const*)'
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' referenced in section `.rodata' of ../../lib/lnxx86/dd_lnxx86_db.a(dwgr12xdata.o): defined in discarded section `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' of ../../lib/lnxx86/dd_lnxx86_db.a(dwgr12xdata.o)
hallo,
sorry. by downloading a new version i have foregot to change the makefile. but you have an error in the makefile at line at 40 char 77
"^m" instead of "\".
i have already a linker message. but the program was linked. not very good.
g++ -wno-deprecated -doda_gcc -m32 -o odreadex exsystemservices.o exhostappservices.o exundocontroller.o odfilebuf.o odreadex.o dbdumper.o exprotocolextension.o giworlddrawdumper.o exgirasterimage.o ../../lib/lnxx86/dd_lnxx86_modelergeometry.a ../../lib/lnxx86/dd_lnxx86_acisrenderer.a ../../lib/lnxx86/dd_lnxx86_br.a ../../lib/lnxx86/dd_lnxx86_acisbuilder.a ../../lib/lnxx86/dd_lnxx86_db.a ../../lib/lnxx86/dd_lnxx86_gs.a ../../lib/lnxx86/dd_lnxx86_spatialindex.a ../../lib/lnxx86/dd_lnxx86_gi.a ../../lib/lnxx86/dd_lnxx86_ge.a ../../lib/lnxx86/dd_lnxx86_root.a ../../lib/lnxx86/dd_lnxx86_ft.a ../../lib/lnxx86/dd_lnxx86_alloc.a
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' referenced in section `.rodata' of ../../lib/lnxx86/dd_lnxx86_db.a(dbxrecord.o): defined in discarded section `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' of ../../lib/lnxx86/dd_lnxx86_db.a(dbxrecord.o)
/usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' referenced in section `.rodata' of ../../lib/lnxx86/dd_lnxx86_db.a(dwgr12xdata.o): defined in discarded section `.gnu.linkonce.t._znk19odxdataiteratorimpl8datasiz eev' of ../../lib/lnxx86/dd_lnxx86_db.a(dwgr12xdata.o)
hallo,
when i start the program i have segmentation fault with every dxf file.
is this the same problem as in the oldlibs - i have to add a function to read dxf and dwg files.
gnu ddd 3.3.10 (x86_64-suse-linux), by dorothea lusing host libthread_db library "/lib64/libthread_db.so.1".
(gdb) run ~/kunden/dxf/schubladenschrank_herd_ofen_raumh_he_griff_links.d xf
program received signal sigsegv, segmentation fault.
0x086e6233 in typeinfo for odpwdcacheimpl ()
(gdb) bt
#0 0x086e6233 in typeinfo for odpwdcacheimpl ()
#1 0x081de8b1 in oddbdatabaseimpl::initializepaging ()
#2 0x081c618b in oddbdatabase::readfile ()
#3 0x081c5e35 in oddbhostappservices::readfile ()
#4 0x0804b41f in oddbhostappservices::readfile ()
#5 0x0804ad47 in exhostappservices::readfile ()
#6 0x0804e9fd in main ()
(gdb)
hallo,
i think no. with dwg files - the same problem.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】major linux problems yang686526 DirectDWG 0 2009-05-06 05:25 PM
【转帖】library linking errors in xcode 1.5 yang686526 DirectDWG 0 2009-05-06 04:46 PM
【转帖】how to make opopengl sample work yang686526 DirectDWG 0 2009-05-06 02:59 PM
【转帖】compiling on linux x86-64 yang686526 DirectDWG 0 2009-05-04 06:03 PM


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


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