Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Enable c++1y in qt (mingw)
Forum Updated to NodeBB v4.3 + New Features

Enable c++1y in qt (mingw)

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 666 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.
  • E Offline
    E Offline
    ericlemanissier
    wrote on last edited by
    #1

    I'm trying ton enable @CONFIG += c++14@ in qmake (using mingw), but I always get -std=c++0x in the makefiles generated. the only workaround I found is to add in my .pro file QT_GCC_MAJOR_VERSION = 4 and QT_GCC_MINOR_VERSION = 9, then I get properly -std=c++1y.
    Those variables should be set automatically according to the compiler used, am I right ? What could make these variables not being set ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of MinGW have you installed ? Which one is used by your Kit ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ericlemanissier
        wrote on last edited by
        #3

        Hi,
        I'm using the latest qtsdk, so this is mingw 4.9.1 with Qt 5.4.1
        I get the same behaviour in qt creator and in console

        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 Extensions
        • Unsolved