User forums > Using Code::Blocks
C++0x/C++11 in codeblocks (how to implement GCC)
(1/1)
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:
I have it working now, thanks for the help :)
Navigation
[0] Message Index
Go to full version