Qt在CodeBlocks下链接错误(minGW)undefined reference to `_Unwind_Resume'

彩阳 2012-11-25 09:00:39
按照网上给出的教程来配置CodeBlock尝试编译Qt程序。发现链接出现错误,一直都没有解决。这该如何是好!
d:\Qt\lib\libqtmaind.a(qtmain_win.o)||In function `WinMain@16':|
c:\iwmake\build_mingw_opensource\src\winmain\qtmain_win.cpp|93|undefined reference to `_Unwind_Resume'|
c:\iwmake\build_mingw_opensource\src\winmain\qtmain_win.cpp|135|undefined reference to `_Unwind_Resume'|
..\..\..\..\iwmake\build_mingw_opensource\src\corelib\tools\qvector.h|512|undefined reference to `_Unwind_Resume'|
..\..\..\..\iwmake\build_mingw_opensource\src\corelib\tools\qvector.h|513|undefined reference to `_Unwind_Resume'|
d:\Qt\lib\libqtmaind.a(qtmain_win.o):qtmain_win.cpp:(.eh_frame+0x12)||undefined reference to `__gxx_personality_v0'|
||=== Build finished: 5 errors, 0 warnings ===|
求答案……
...全文
835 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
彩阳 2012-12-25
  • 打赏
  • 举报
回复
不圆满地解决了吧: 1、需要换一下minGW编译器,一定是minGW4.4; 2、可以让QtCreator生成moc_XX.cpp文件,然后将moc_XX.cpp文件添加至项目一起编译。不要使用以前的makefile。

16,216

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧