Pine

Joined: 20th Dec 2011
Posts: 1179
Code::Blocks/Compiling error
Whenever I try to compile something, this error always comes up.
c:\mingw32\bin\..\lib\gcc\mingw32\4.7.1\include\c++\bits\c++0x_warning.h|32|error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.|
12 years, 20 weeks ago
|
Addison

Joined: 24th Mar 2009
Posts: 1380
Re: Code::Blocks/Compiling error
That indicates that the file is for C++11 so you have to tell your project that's how you're going to compile.
Project->Build Options->Other options:
Type in -std=c++11 or -std=gnu++11
---
http://www.addipop.com
12 years, 20 weeks ago
|
Pine

Joined: 20th Dec 2011
Posts: 1179
Re: Code::Blocks/Compiling error
"-std=gnu++11" is already there, yet it still doesn't compile. I still get that error.
This is what is in "Project>Build Options>Other Options"
-std=gnu++11
-include ../src/stdafx.h
12 years, 20 weeks ago
|
Addison

Joined: 24th Mar 2009
Posts: 1380
Re: Code::Blocks/Compiling error
Well that is quite weird then.
Go to Settings->Compiler and Debugger->Other Settings->Set Compiler logging to full command line.
Then click okay and rebuild, not just compile, your project. In the logging console, which should be the bottom half of your codeblocks by default, switch over to the Build Log, not the Build Messages. Copy and paste what it says. This will show what CodeBlocks is specifically doing
and we can see exactly what file the issue is with and see if it's getting the correct flags.
---
http://www.addipop.com
12 years, 20 weeks ago
|
Pine

Joined: 20th Dec 2011
Posts: 1179
Re: Code::Blocks/Compiling error
Alright, did that. This is the error.
c:\mingw32\bin\..\lib\gcc\mingw32\4.7.1\include\c++\bits\c++0x_warning.h|32|error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.|
12 years, 20 weeks ago
|
Cyanide

Joined: 10th Nov 2010
Posts: 1041
Re: Code::Blocks/Compiling error
Hey pine, I wish I could help you on this one but if no one comes to fix this problem I'd head over to the Code Blocks forum and ask on their if they have any ideas. :\
;-; I've never had said problem.. But here's a BUMP for you! lol ---
( ͡° ͜ʖ ͡°)CTronic.org
I'm Nutso. Keep your fingers out of my butthole.
12 years, 19 weeks ago
|
Pine

Joined: 20th Dec 2011
Posts: 1179
Re: Code::Blocks/Compiling error
Alright, cheers Kody. Might head over to their forums soon.
12 years, 19 weeks ago
| | | | | | |