Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Segmentation fault when trying to #include QtCore with C++0x
Qt 6.12 LTS is out! See what's new in the release blog

Segmentation fault when trying to #include QtCore with C++0x

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 5.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    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 1

    Any idea on how to solve this?

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      It seems that you're using release candidate version of Qt 4.8. It's been released so you can try release version.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        See "Qt Creator, MinGW and C++ 11":http://developer.qt.nokia.com/forums/viewthread/13710.

        1 Reply Last reply
        0
        • ? Offline
          ? Offline
          A Former User
          wrote on last edited by
          #4

          Oh i didn't saw it, not paying to much attention, i'll try. Thanks.

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            [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.

            1 Reply Last reply
            0
            • ? Offline
              ? Offline
              A Former User
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt
              • Unsolved