使用QT的'_Unwind_Resume'的未定义引用 [英] Undefined reference to `_Unwind_Resume' with QT
本文介绍了使用QT的'_Unwind_Resume'的未定义引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当尝试切换到gcc 4.6.2在qt(设置它在一个工具链)我得到以下错误:
When trying to switch to gcc 4.6.2 in qt (setting it in a toolchain) I'm getting the following error:
c:\ndk_buildrepos\qt-desktop\src\winmain\qtmain_win.cpp:93: error: undefined reference to `_Unwind_Resume'
有什么想法如何解决?
//.pro
QMAKE_CXXFLAGS += -std=c++0x
SOURCES += \
main.cpp
推荐答案
- 我单独下载并安装了一个Qt库(我没有下载整个SDK)
- 我写了一个简单的Hello Qt窗口..
- 我链接到我的Dev-Cpp(因为Dev-Cpp使用MinGW) is 3.4.x not 4.4.x ...
- 我使用 qmake ..等编译Qt方法。
- 我遇到了您遇到的错误。
- I download and installed a Qt library alone (i didn't download the whole SDK)
- I Wrote a simple Hello Qt window..
- I link it with my Dev-Cpp (since Dev-Cpp is using MinGW as well) mine version actually is 3.4.x not 4.4.x...
- I compile it the Qt way using qmake .. etc..
- I got an error you have experienced as well..
..._Unwind_Resume ......
... "_Unwind_Resume ..." ...
我的解决方案(简单,非常简单)
My Solution (simple, very simple)
- 运行Qt XXX (构建调试库)或..
- 运行 qtvars.bat (取决于您使用的Qt版本)mine是4.8.0 ..
- 1和2是一样的。
- Run the Qt X.X.X. (Build Debug Libraries) or..
- Run the qtvars.bat (depending on the version of Qt you are using) mine is 4.8.0..
- 1 and 2 are the same thing..
make 再次..它运行..)
I did a hit of make again.. it runs..:)
ps它解决了我的问题:)我希望它也可以解决你的。
p.s. it solves my problem.:) I hope it can solve yours too.
这篇关于使用QT的'_Unwind_Resume'的未定义引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文