Using -std=c++14 causes error.
Platform Ubuntu 14.04.
Clion 1.2.4
When adding the line
-std=c++14
I get the error below but not when -std=c++11 is used.
c++: error: unrecognized command line option ‘-std=c++14’
Thanks for any help.
Please sign in to leave a comment.
Hi Joseph.
Could you please attach a screenshot via Preferences | Build, Execution, Deployment | Toolchains?
With Ubuntu 14.04 you're probably using gcc-4.8, which predates the c++14 standard. However, you should be able to use c++14 features with '-std=c++1y'
Hi Joseph.
Do you still have the problem?
Thank you Anna and Werner for your input; -std=c++1y did the trick.