Qt Forum

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

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

    Installation and Deployment
    2
    5
    1404
    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.
    • C
      ChrisJW last edited by

      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 Reply Quote 0
      • gagiD
        gagiD last edited by

        Which version of gcc you have?
        Can check with:

        gcc --version
        
        C 1 Reply Last reply Reply Quote 0
        • C
          ChrisJW @gagiD last edited by

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

          1 Reply Last reply Reply Quote 0
          • gagiD
            gagiD last edited by 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 1 Reply Last reply Reply Quote 0
            • C
              ChrisJW @gagiD last edited by

              @gagiD updated to 4.9 and everything compiles thanks!

              1 Reply Last reply Reply Quote 0
              • First post
                Last post