Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Just installed QT Creator on Ubuntu 14.04, getting this error: unrecognized command line option ‘-std=gnu++14’
QtWS25 Last Chance

Just installed QT Creator on Ubuntu 14.04, getting this error: unrecognized command line option ‘-std=gnu++14’

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
5 Posts 2 Posters 1.7k 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.
  • C Offline
    C Offline
    ChrisJW
    wrote on last edited by
    #1

    Getting this error on ubuntu 14.04.
    error: unrecognized command line option ‘-std=gnu++14’

    I have already tried updating my build-essentials. Any advice?

    1 Reply Last reply
    0
    • gagiDG Offline
      gagiDG Offline
      gagiD
      wrote on last edited by
      #2

      Which version of gcc you have?
      Can check with:

      gcc --version
      
      C 1 Reply Last reply
      0
      • gagiDG gagiD

        Which version of gcc you have?
        Can check with:

        gcc --version
        
        C Offline
        C Offline
        ChrisJW
        wrote on last edited by
        #3

        @gagiD gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4

        1 Reply Last reply
        0
        • gagiDG Offline
          gagiDG Offline
          gagiD
          wrote on last edited by gagiD
          #4

          You need at least 4.9 version or don't use C++14 if you can.

          P.S.
          There is http://packages.ubuntu.com/trusty/gcc-4.9-base package.

          C 1 Reply Last reply
          0
          • gagiDG gagiD

            You need at least 4.9 version or don't use C++14 if you can.

            P.S.
            There is http://packages.ubuntu.com/trusty/gcc-4.9-base package.

            C Offline
            C Offline
            ChrisJW
            wrote on last edited by
            #5

            @gagiD updated to 4.9 and everything compiles thanks!

            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