Author Topic: C++0x/C++11 in codeblocks (how to implement GCC)  (Read 8493 times)

Offline Topdog2904

  • Single posting newcomer
  • *
  • Posts: 3
C++0x/C++11 in codeblocks (how to implement GCC)
« on: June 28, 2012, 04:56:07 pm »
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

  • Guest
Re: C++0x/C++11 in codeblocks (how to implement GCC)
« Reply #1 on: June 28, 2012, 05:13:56 pm »
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.

Offline Topdog2904

  • Single posting newcomer
  • *
  • Posts: 3
Re: C++0x/C++11 in codeblocks (how to implement GCC)
« Reply #2 on: June 28, 2012, 06:25:12 pm »
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

Offline Topdog2904

  • Single posting newcomer
  • *
  • Posts: 3
Re: C++0x/C++11 in codeblocks (how to implement GCC)
« Reply #3 on: June 29, 2012, 01:31:03 am »
I have it working now, thanks for the help :)