Find the answer to your Linux question:
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, ...
  1. #1
    Just 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:
    Code:
    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).
    Thanks in advance.

  2. #2
    Linux Enthusiast Kloschüssel's Avatar
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    718

  3. #3
    Linux Guru Rubberman's Avatar
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...