This algorithm can help start with programming with C ++ 11 on Windows:
1) Go to http://mingw.com and download the latest version of MinGW, install it
2) Download the CodeBlocks installer, install it. During installation, he should detect the GCC installation and suggest using the default compiler, accept this.
3) Launch a new CodeBlocks project, go to Project β Properties β Build Settings β Compiler Options β Compiler Flags, then set the flag βHave g ++, following the following C ++ 0x ISO C ++ Language Standardβ
4) Compile your first C ++ 11 project and have fun!
By the way, the latest MinGW g ++ has version 4.6.1, since now it should support most C ++ 11 functions.
source share