1)
问题:
按照紫侠博客上的教程页操作:
一、
Qt Creator的安装和hello world程序的编写。
在操作完第八步:
8.点击Finish,完成工程的建立。 运行‘Ctrl+R’,出现以下错误: qtmain_win.cpp:-1: error: undefined reference to `__gxx_personality_sj0'
qtmain_win.cpp:-1: error: undefined reference to `_Unwind_SjLj_Register'
qtmain_win.cpp:-1: error: undefined reference to `_Unwind_SjLj_Unregister'
qtmain_win.cpp:-1: error: undefined reference to `_Unwind_SjLj_Resume'
:-1: error: collect2: ld returned 1 exit status
2)我的软件
安装和设置情况:
Qt
Creator的版本:2.2.82(2.3.0 Beta),安装
目录:C:\Qt\qtcreator-2.2.82;
Qt 版本:4.4.0,安装目录:f:\Qt\4.4.0\
Qt Creator 的project中的Build Enviroment中的path设置:PATH
C:\Qt\qtcreator-2.2.82\mingw\bin;f:\Qt\4.4.0\lib;f:\Qt\4.4.0\bin;
3)我的工程目录:
F:\Qt_exercise\helloworld
4)备注:
我在命令行
编译环境中,用
qmake –project、
qmake
make是可以编译成功的。
但为什么在Qt Creatror中就不行呢?
请帮忙解决