2
OS is Ubuntu 10.04.
I need to compile some C++ code with -std=c++0x
flag. But compiling doesn't work because I need 4.6.1 version.
Now, when I go to Gnu's ftp, I see two different packages:
gcc-4.6.1
gcc-g++-4.6.1
Knowing that I need to compile C++0x code, which one should I download, and how do I install it/them?
I already installed these libraries (gmp, mpc and mpfr).
2You'll likely need both of those and then some. Grab
gcc-g++
first. Then see what it says it needs in order to install. – David Schwartz – 2011-10-20T20:05:39.423GCC originally meant GNU C Compiler. Now it's GNU Compiler Collection. The g++ program is in fact the C++ compiler part of it. The idea is that if you for example only want to use C++ compiler, you don't have to download for example the Ada compiler which is also part of GCC. – AndrejaKo – 2011-10-20T22:50:18.457