免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3022 | 回复: 0
打印 上一主题 下一主题

[C++] AIX 5.3 g++ 4.2.4/4.3.3 编译报错: Undefined symbol: _ukey_enable [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-09-03 09:54 |只看该作者 |倒序浏览
我在AIX5.3上面编译一个使用TinyXml和多线程的应用,用gcc4.3.3报错说tinyxml很多类的虚函数表未定义,用gcc4.2.4则没有这些错误,但是报错说_ukey_enable skynue未定义,
完全不一样的错误提示,有遇到过这样问题的请给些指点,这个编译错误在网上搜了两天也没解决方案,各位看看是什么原因,多谢!

==============================os information===============================
-bash-3.2# oslevel -s
5300-03-00
-bash-3.2# /usr/local/gcc433/bin/g++ -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: /usr/local/gcc_build/gcc-4.3.3/configure --prefix=/usr/local/gcc433 --enable-languages=c,c++ --with-gmp=/usr/local/gmp32 --with-mpfr=/usr/local/mpfr32
Thread model: aix
gcc version 4.3.3 (GCC)
-bash-3.2# g++ -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../gcc-4.2.4/configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran --prefix=/opt/freeware --enable-threads --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.2.4

=====================compile error=====================

+(1)this part comes from the g++(4.24),i searched in google and didn't get any useful information.+

-bash-3.2# g++ -o xmltest -O2 -static -I ../../../include -I ../../../include/plugin -I ../../../include/tinyxml -D _THREAD_SAFE ../../../source/tinyxml/tinyxml.cpp ../../../source/tinyxml/tinyxmlerror.cpp ../../../source/tinyxml/tinyxmlparser.cpp ../../../source/common/log_manager.cpp ../../../source/common/log_print.cpp ../../../source/common/file_manager.cpp ../../../source/common/directory.cpp ../../../source/common/xml.cpp ../../../source/common/utils.cpp ../../../source/common/child_process.cpp ../../../source/common/critical_section.cpp xmltest.cpp -lpthread
ld: 0711-317 ERROR: Undefined symbol: _ukey_enable
ld: 0711-317 ERROR: Undefined symbol: skeytune
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
-bash-3.2#

+(2)this part comes from g++(4.3.3), these two version gcc just tell completely different error+

-bash-3.2# /usr/local/gcc433/bin/g++ -o xmltest -O2 -I ../../../include -I ../../../include/plugin -I ../../../include/tinyxml -D _THREAD_SAFE ../../../source/tinyxml/tinyxml.cpp ../../../source/tinyxml/tinyxmlerror.cpp ../../../source/tinyxml/tinyxmlparser.cpp ../../../source/common/log_manager.cpp ../../../source/common/log_print.cpp ../../../source/common/file_manager.cpp ../../../source/common/directory.cpp ../../../source/common/xml.cpp ../../../source/common/utils.cpp ../../../source/common/child_process.cpp ../../../source/common/critical_section.cpp xmltest.cpp -L../../../lib/aix5.3/2004 -lpthread

ld: 0711-317 ERROR: Undefined symbol: typeinfo for TiXmlNode
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlText
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlDeclaration
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlComment
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlUnknown
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlAttribute
ld: 0711-317 ERROR: Undefined symbol: vtable for TiXmlDocument
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
collect2: ld returned 8 exit status
-bash-3.2#
-bash-3.2# ls
suse9.xml xmltest.cpp
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP