• 3970阅读
  • 1回复

QT程序的link错误 [复制链接]

上一主题 下一主题
离线zheng0929
 
只看楼主 正序阅读 楼主  发表于: 2009-05-11
我用arm-linux工具编译一个应用程序的时候出现了这样的link错误:
bookmarks.cpp:(.text+0x9a78): undefined reference to `_Unwind_SjLj_Register'
bookmarks.cpp:(.text+0x9b10): undefined reference to `_Unwind_SjLj_Unregister'
bookmarks.cpp:(.text+0x9b70): undefined reference to `_Unwind_SjLj_Resume'
bookmarks.cpp:(.text+0x9b74): undefined reference to `__gxx_personality_sj0'
```
类似的还很多,大家知道这是什么原因吗?该怎么解决?谢谢!!!
离线gvim
只看该作者 1楼 发表于: 2009-05-11
bookmarks.cpp:(.text+0x9a78): undefined reference to `_Unwind_SjLj_Register'
bookmarks.cpp:(.text+0x9b10): undefined reference to `_Unwind_SjLj_Unregister'
bookmarks.cpp:(.text+0x9b70): undefined reference to `_Unwind_SjLj_Resume'
bookmarks.cpp:(.text+0x9b74): undefined reference to `__gxx_personality_sj0'


$ arm-inux-c++filt  _Unwind_SjLj_Register
看看输出的是什么函数名字,然后在去查你的函数在哪里编译的,为什么找不到。
Qt,Qt! 分享Cute之Qt体验
欢迎访问 http://www.cuteqt.com
欢迎订阅 http://www.cuteqt.com/?feed=rss2

快速回复
限100 字节
 
上一个 下一个