Author Topic: Code::Blocks forces -std=c++11 even when I try to use -std=c++14  (Read 2390 times)

Offline FaTony

  • Single posting newcomer
  • *
  • Posts: 3
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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks forces -std=c++11 even when I try to use -std=c++14
« Reply #1 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 ?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline FaTony

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code::Blocks forces -std=c++11 even when I try to use -std=c++14
« Reply #2 on: June 05, 2016, 07:05:06 pm »
Oh, I completely forgot about those. Yeah, the -std=c++11 was there. Thanks.