Segmentation fault when trying to #include QtCore with C++0x
-
Well i've actually been trying to do this:
QMAKE_CXXFLAGS += "-std=c++0x -U__STRICT_ANSI__"
Fine, though but if i do
#include <QtCore> in any of my project files i get Segmentation Fault when building.
The Output:
C:\Users*\Test-build-desktop-Qt_4_8_0_RC_for_Desktop_-_MinGW__Qt_SDK__Debug......\QtSDK\Desktop\Qt\4.8.0\mingw\include\QtCore\QtCore:28: In file included from ......\QtSDK\Desktop\Qt\4.8.0\mingw\include\QtCore/QtCore:28,
C:\Users*\Test-build-desktop-Qt_4_8_0_RC_for_Desktop_-MinGW__Qt_SDK__Debug..\Test\mainwindow.cpp:4: from ..\Test\mainwindow.cpp:4:
C:\Users***\Test-build-desktop-Qt_4_8_0_RC_for_Desktop-_MinGW__Qt_SDK__Debug......\QtSDK\Desktop\Qt\4.8.0\mingw\include\QtCore\qtconcurrentrun.h:113: internal compiler error: Segmentation fault
:-1: error: [debug/mainwindow.o] Error 1Any idea on how to solve this?
-
It seems that you're using release candidate version of Qt 4.8. It's been released so you can try release version.
-
See "Qt Creator, MinGW and C++ 11":http://developer.qt.nokia.com/forums/viewthread/13710.
-
Oh i didn't saw it, not paying to much attention, i'll try. Thanks.
-
[quote author="p-himik" date="1328514798"]It seems that you're using release candidate version of Qt 4.8. It's been released so you can try release version.[/quote]
I'm using the 4.8.0 (Not the RC, i just installed it) and i still keep getting Segmentation Fault.
-
Do not use C++11 with MinGW 4.4. It just doesn't work in most cases. Get an up to date version of MinGW or get MSVC2010 - both at no cost.