Results 1 to 3 of 3
Hi, I'm new to Linux Forums.
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, ...
- 10-20-2011 #1Just Joined!
- Join Date
- Oct 2011
- Posts
- 1
Which package should I download to compile C++0x code
Hi, I'm new to Linux Forums.
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:
Knowing that I need to compile C++0x code, which one should I download, and how do I install it/them?Code:gcc-4.6.1 gcc-g++-4.6.1
I already installed these libraries (gmp, mpc and mpfr).
Thanks in advance.
- 10-21-2011 #2
- 10-22-2011 #3Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,977
The raw gcc package is the C compiler, and the g++ package is the C++ compiler. I think if you install the g++ package, the gcc package will be automatically installed as a dependency. In any case, the g++ package will let you do C++0x compatible code compilation.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote