C++2011

Hi everyone,

I have a doubt, I have got a code which I have to compile it with C++2011 standard.
I dont know how to set that on my IDE, I'm using Codelite 5.3,does anyone know how to do it?

My error compiler is:

c:\mingw-4.7.1\bin\../lib/gcc/mingw32/4.7.1/include/c++/bits/c++0x_warning.h:32:2: 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.

http://codelite.org/LiteEditor/ProjectSettings
Mentions Compiler Options. Append the -std=c++11 to that box.
oh thank you, but I have found a IDE which is quite easy to set C++2011, It's called DEC C++, It's compiling and with so many error,heheehehe
I'm using Codelite 5.3,does anyone know how to do it?

With CodeLite you open the Settings for your project and add -std=c++11 to the C++ Compiler Options on either the Common Settings/Compiler or Global Settings tab. The first is build target specific (e.g. debug or release build); the second applies to all targets.

Andy
Last edited on
but how do i get -std=c++11, do I have to download that compiler?? I cant find that on setting..
GCC 4.7.1 understands -std=c++11

You enter the setting in the edit box for C++ Compiler Options

Andy
Topic archived. No new replies allowed.