Author Topic: Code::Blocks, g++ 4.6.x and you!  (Read 5654 times)

ciphermagi

  • Guest
Code::Blocks, g++ 4.6.x and you!
« on: January 20, 2012, 02:10:31 am »
I had a very hard time finding this, so here is some information that I want to share with the world. This is me in another forum:

Quote
Hej, y'all.

I'm running Linux Mint 11, and I have an AMD Phenom II x6 Black Edition 1100t on a 1 TB partition with approximately 700 GB of free space. I am dual booting with Ubuntu 11 (which I never use, so I should just delete it), on it's own 500 GB partition.

The issue that I'm having is that I am trying to update my development environment to use the upcoming C++ 11 Libraries, and I haven't found an IDE that's useable by Linux yet that supports the new library. I have come down to where I'm actually willing to download and compile gcc 4.6.2 from it's website and compile it, but I don't actually know how to perform that task. I have looked at the instructions, but they are somewhat confusing to me, as I am less of an experienced linux user than I would like to be.

If anybody could help me figure out how to ensure that I have all of the requirements met, and help me to go through the process of the build and use, I would be highly appreciative.

After some kind soul was willing to help me, this is me again in the same forum:
Quote
Following up, I managed to find the following information. This has enabled me to install g++ 4.6.2 and gcc 4.6.2 on my Linux Mint machine. Now, in defiance of the SOPA/PIPA, I am sharing this information for free!!!!

I use Code::Blocks, so I did the following:
Go to http://www.codeblocks.org/downloads/26 and get your IDE for your distro.
Go to http://buildall.wordpress.com/2011/04/20/installing-gcc-4-6-in-the-ubuntu-10-10/ and follow the instructions there.
Go to http://buildall.wordpress.com/2011/05/03/installing-gcc-4-6-in-the-ubuntu-11-04-natty-narwhal/ for interesting reading about updating version numbers.
Go to http://www.cplusplus.com/forum/beginner/31758/ for enabling the -std=c++0x flag in Code::Blocks.

Have a nice day!

Hope someone gets some use out of this!