Using -std=c++14 causes error. Permanently deleted user 创建于 2016年02月26日 07:36 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.
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.