GNU GCC Compiler Update

I use code blocks with the gnu gcc compiler. But when I try to compile the value base to run, it gives a lot of errors. Therefore, I think the compiler does not support C ++ 0x. Therefore, I want to know how to find out the version of the compiler that I am using, and how to update it correctly to support C ++ 0x. I am using Windows XP.

+1
source share
1 answer

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.

+1
source

Source: https://habr.com/ru/post/975459/


All Articles