qt运行hellowrold出错,求解!

wj2699 发布于 2012/11/25 14:50
阅读 361
收藏 0
Qt
加载中
1
一只小小的菜鸟
一只小小的菜鸟

你的Qt4.8.3是用MinGw4.4编译的,如果你使用MinGw4.7将会存在问题

因为MinGw4.7.0及之后版本有了改变,所以说白了就是你用的是MinGw4.7,但Qt库是用MinGw4.4编译的,你不能使用MinGw4.4编译的Qt库,重新编译试试

0
wj2699
wj2699

The Qt 4.8.3 MinGW library that you can download from qt-project.org was built with MinGW 4.4. If you're using that library, you'll have problems trying to use MinGW 4.7.

MinGW 4.7.0 changed the default calling convention for C++ class members to __thiscall, so C++ programs built with MinGW 4.7.0 or later are not compatible with libraries or object files built with earlier versions of MinGW. See http://stackoverflow.com/a/13134812/12711 for more details.

You'll need to use an older version of MinGW (ideally 4.4) or you'll need to rebuild the Qt library with the version of MinGW you're using. If you try to rebuild Qt and run into problems, this SO answer may have some helpful pointers.

0
一只小小的菜鸟
一只小小的菜鸟

我以前学过一点Qt

Qt4.8.3不过我是自己编译的vs2010的

当然也写了个小软件,功能垃圾,我都没好意思,放到这里供人参观。。。不过我用Qt就是为了做界面

我邮箱luw88888888@126.com


0
吃土的汉子
吃土的汉子
Windows下的……还是直接用全套的QtSDK吧
0
wj2699
wj2699
我试试下源码编译!
0
wj2699
wj2699

引用来自“子不语怪力乱神”的答案

Windows下的……还是直接用全套的QtSDK吧
我下的是这个
吃土的汉子
吃土的汉子
果然不是全套的……下1G左右那个就没问题啦
0
wj2699
wj2699

引用来自“wj2699”的答案

引用来自“子不语怪力乱神”的答案

Windows下的……还是直接用全套的QtSDK吧
我下的是这个
我在去下,谢了
返回顶部
顶部