使用QT的'_Unwind_Resume'的未定义引用 [英] Undefined reference to `_Unwind_Resume' with QT

查看:147
本文介绍了使用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


推荐答案


  1. 我单独下载并安装了一个Qt库(我没有下载整个SDK)

  2. 我写了一个简单的Hello Qt窗口..

  3. 我链接到我的Dev-Cpp(因为Dev-Cpp使用MinGW) is 3.4.x not 4.4.x ...

  4. 我使用 qmake ..等编译Qt方法。

  5. 我遇到了您遇到的错误。

  1. I download and installed a Qt library alone (i didn't download the whole SDK)
  2. I Wrote a simple Hello Qt window..
  3. 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...
  4. I compile it the Qt way using qmake .. etc..
  5. I got an error you have experienced as well..

..._Unwind_Resume ......

... "_Unwind_Resume ..." ...

我的解决方案(简单,非常简单)

My Solution (simple, very simple)


  1. 运行Qt XXX (构建调试库)或..

  2. 运行 qtvars.bat (取决于您使用的Qt版本)mine是4.8.0 ..

  3. 1和2是一样的。

  1. Run the Qt X.X.X. (Build Debug Libraries) or..
  2. Run the qtvars.bat (depending on the version of Qt you are using) mine is 4.8.0..
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆