projectGenerator c++ 14 error


i am using latest oF0.9.2 under ubuntu 14.04 and i get this error when launching

  g++: error: unrecognized command line option -std=c++14

i am using gcc-4.9 and g+±4.9


seems like changing the flag






did the trick

mmh, that’s strange gcc 4.9 should recognize that flag just fine, the test servers run with 14.04 and gcc 4.9 and it compiles without problem there

projectGenerator compilation succeeded, but same problem appeared with another app i am trying to build.
I ended up switching every c++14 flags to c++11 in order to make it to build.

it definitely doesn’t like c++14

are you sure you are using gcc 4.9? if you type g++ -v in a terminal what do you get?

yes. I double checked. gcc and g++ version 4.9.3

i updated alternative once more to be sure

  sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9

i can see it warns me about some broken alternative.

I am re-installing gcc and g++ just in case…

Just chiming in to say I just had the exact same issue. I reinstalled g+±4.9 with

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-4.9

and then I needed to remove the old link to g++4.8 and relink with 4.9 so

sudo rm /usr/bin/g++
sudo ln -s /usr/bin/g++-4.9 /usr/bin/g++

and everything seems to be working.


i re-installed gcc-4.9 and g+±4.9 and did an upgrade-alternatives again and PG seems to compile ok now…