Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

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

    General and Desktop
    setup openframeworks kit options compiler option
    4
    7
    10508
    Loading More Posts
    • 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
      jmmp last edited by

      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 Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion last edited by

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

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

        J 1 Reply Last reply Reply Quote 0
        • B
          Bagavathi @jmmp last edited by

          @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 Reply Quote 0
          • J
            jmmp @jsulm last edited by jmmp

            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 Reply Quote 0
            • mrjj
              mrjj Lifetime Qt Champion last edited by

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

              J 1 Reply Last reply Reply Quote 0
              • B
                Bagavathi @jmmp last edited by Bagavathi

                @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 Reply Quote 1
                • J
                  jmmp @mrjj last edited by jmmp

                  @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 Reply Quote 0
                  • First post
                    Last post