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. Beginner: Unrecognized command line option ‘-std=gnu++14’ ??
QtWS25 Last Chance

Beginner: Unrecognized command line option ‘-std=gnu++14’ ??

Scheduled Pinned Locked Moved Solved General and Desktop
setupopenframeworkskit optionscompiler option
7 Posts 4 Posters 12.1k Views
  • 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.
  • J Offline
    J Offline
    jmmp
    wrote on 21 Dec 2015, 02:48 last edited by
    #1

    Hello,

    I am new to QT Creator and have spent many hours trying to figure out where the following error is coming from:

    :-1: error: error: unrecognized command line option ‘-std=gnu++14’

    I am trying to get an OpenFrameworks example to compile on Ubuntu 14.04 LTS
    Openframeworks is newly installed, and compiles correctly using a make file.

    However, in QT Creator, I get the above error message. I cannot find where to change it.
    I don't inderstand why QT-Creator is supplying ‘-std=gnu++14’ and would like to override that.
    My setup is like this:

    Qt Creator 3.6.0
    Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)
    on Ubuntu 10.04 LTS

    In Options Build & Run, Compiler
    Name: GCC-4.8
    Compile path: /usr/bin/gcc-4.8
    codegen and linker flags both left blank
    ABI: x86-linux-generic-elf-64bit

    QT Version set to:
    QT 4.8.6 in PATH /usr/lib/x86_64-linux-gnu/qt4/bin/qmake
    QT 4.8.6 for Desktop

    Kit
    Name: OpenFrameworks
    Devicetype: Desktop
    Device: Local PC (Default for Desktop)
    sysroot: blank
    Compiler: GCC-4.8
    Debugger: System GDB
    Qt Version: as above
    CMake tool: System Cmake

    I would be grateful if someone could help me get things going, please.

    Thanks.
    :-)
    John Montgomery,

    B 1 Reply Last reply 21 Dec 2015, 05:46
    0
    • J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 21 Dec 2015, 05:40 last edited by
      #2

      How do you build it QtCreator? Using qmake, cmake, ...?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply 21 Dec 2015, 17:03
      0
      • J jmmp
        21 Dec 2015, 02:48

        Hello,

        I am new to QT Creator and have spent many hours trying to figure out where the following error is coming from:

        :-1: error: error: unrecognized command line option ‘-std=gnu++14’

        I am trying to get an OpenFrameworks example to compile on Ubuntu 14.04 LTS
        Openframeworks is newly installed, and compiles correctly using a make file.

        However, in QT Creator, I get the above error message. I cannot find where to change it.
        I don't inderstand why QT-Creator is supplying ‘-std=gnu++14’ and would like to override that.
        My setup is like this:

        Qt Creator 3.6.0
        Based on Qt 5.5.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bit)
        on Ubuntu 10.04 LTS

        In Options Build & Run, Compiler
        Name: GCC-4.8
        Compile path: /usr/bin/gcc-4.8
        codegen and linker flags both left blank
        ABI: x86-linux-generic-elf-64bit

        QT Version set to:
        QT 4.8.6 in PATH /usr/lib/x86_64-linux-gnu/qt4/bin/qmake
        QT 4.8.6 for Desktop

        Kit
        Name: OpenFrameworks
        Devicetype: Desktop
        Device: Local PC (Default for Desktop)
        sysroot: blank
        Compiler: GCC-4.8
        Debugger: System GDB
        Qt Version: as above
        CMake tool: System Cmake

        I would be grateful if someone could help me get things going, please.

        Thanks.
        :-)
        John Montgomery,

        B Offline
        B Offline
        Bagavathi
        wrote on 21 Dec 2015, 05:46 last edited by
        #3

        @jmmp said:

        OpenFrameworks

        I don't no exactly about the error, but basically this line (‘-std=gnu++14’) trying to enable the C++14 features. Please check your configuration is supporting C++14 features.

        1 Reply Last reply
        0
        • J jsulm
          21 Dec 2015, 05:40

          How do you build it QtCreator? Using qmake, cmake, ...?

          J Offline
          J Offline
          jmmp
          wrote on 21 Dec 2015, 17:03 last edited by jmmp
          #4

          Thanks for responding,

          @jsulm I use QtCreator 'Build All' ( building one of the simple examples in OpenFrameworks.)

          @Bagavathi I know my system does not handle C++14, so why does QtCreator make this wrong request?

          B 1 Reply Last reply 22 Dec 2015, 04:55
          0
          • M Offline
            M Offline
            mrjj
            Lifetime Qt Champion
            wrote on 21 Dec 2015, 17:22 last edited by
            #5

            hi and welcome
            Do you have a .pro file?
            if yes, look for
            CONFIG +=C++14

            J 1 Reply Last reply 23 Dec 2015, 11:45
            0
            • J jmmp
              21 Dec 2015, 17:03

              Thanks for responding,

              @jsulm I use QtCreator 'Build All' ( building one of the simple examples in OpenFrameworks.)

              @Bagavathi I know my system does not handle C++14, so why does QtCreator make this wrong request?

              B Offline
              B Offline
              Bagavathi
              wrote on 22 Dec 2015, 04:55 last edited by Bagavathi
              #6

              @jmmp

              I know my system does not handle C++14, so why does QtCreator make this wrong request?

              So any one of your sub packages are expecting C++14 possibly OpenFramework. Please check the requirement of OpenFramework or simply update your compiler gcc 4.8 to gcc 4.9

              1 Reply Last reply
              1
              • M mrjj
                21 Dec 2015, 17:22

                hi and welcome
                Do you have a .pro file?
                if yes, look for
                CONFIG +=C++14

                J Offline
                J Offline
                jmmp
                wrote on 23 Dec 2015, 11:45 last edited by jmmp
                #7

                @mrjj No I don't have a .pro file so I am opening using a .qbs file
                @Bagavathi I have done as you said, and that has worked. (i.e. Upgrading gcc/g++ )

                In the meantime I also discovered ( I am on Ubuntu ), that using command-line and 'make' works fine for all projects. So I am sorted.
                Thanks very much for your help.
                :-)
                John Montgomery, Glassel, Scotland.

                1 Reply Last reply
                0

                2/7

                21 Dec 2015, 05:40

                topic:navigator.unread, 5
                • Login

                • Login or register to search.
                2 out of 7
                • First post
                  2/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved