News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

C++0x/C++11 in codeblocks (how to implement GCC)

Started by Topdog2904, June 28, 2012, 04:56:07 PM

Previous topic - Next topic

Topdog2904

Hi,

I'm wondering how to enable support for C++11 completely. I can use long long numbers, but not range based for loops.
I don't know all the techie speak, so if you ark kind enough to reply. Please make it simple :)

So far, I have established that I have an older version of GCC but have no idea how to update this. Any help would be appreciated

Andy



zabzonk

What platform are you on? If it's Windows, you can get an pretty up-to-date GCC implementation of GCC from TDM (certainly supports the new for-loop syntax) - I have easy to follow instructions on my blog at http://latedev.wordpress.com/2011/06/20/how-to-install-a-c-compiler-on-windows. You will then need to point C::B  at the new installation - see Settings|Compiler|Toolchain Executables.

Topdog2904

Yeah, I am on windows (probably should have mentioned that).

Anyways, thanks for your quick reply. Had a little read of the blog post and it seems very helpful. I will have a look at it tonight and see how that goes.

Again, thanks for the help

Andy

Topdog2904