User forums => Help => Topic started by: FaTony on June 05, 2016, 05:01:40 pm
Title: Code::Blocks forces -std=c++11 even when I try to use -std=c++14
Post by: FaTony on June 05, 2016, 05:01:40 pm
So I'm on C::B 16.01 and I can't compile C++14 projects. I've checked the c++14 checkbox in build options but C::B adds -std=c++11 forcing the g++ to go into c++11 mode like so:
Code
g++ -std=c++14 -fPIC -Wall -g -std=c++11
Help?
Title: Re: Code::Blocks forces -std=c++11 even when I try to use -std=c++14
Post by: oBFusCATed on June 05, 2016, 06:38:57 pm
Have you read this: http://wiki.codeblocks.org/index.php/FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F and the manual? Do you have a project? Have you inspected you global compiler options for the -std=c++11 ?
Title: Re: Code::Blocks forces -std=c++11 even when I try to use -std=c++14
Post by: FaTony on June 05, 2016, 07:05:06 pm
Oh, I completely forgot about those. Yeah, the -std=c++11 was there. Thanks.