Results 1 to 2 of 2

Thread: I need GCC 4.8 in Ubuntu 12.04

  1. #1
    Join Date
    Dec 2010
    Beans
    32

    I need GCC 4.8 in Ubuntu 12.04

    I have GCC 4.6 in Ubuntu 12.04 (Precise).
    I need GCC 4.8 because it has new C++11 features and I have to keep 12.04 because it is LTS.

    How to update GCC?

  2. #2
    Join Date
    Mar 2007
    Beans
    103
    Distro
    Xubuntu 12.04 Precise Pangolin

    Re: I need GCC 4.8 in Ubuntu 12.04

    I think all the information you need should be at:

    https://launchpad.net/~ubuntu-toolch...+archive/test/
    https://launchpad.net/+help-soyuz/ppa-sources-list.html

    It's not absolutely perfect when compiling with -g though. gcc 4.8 apparently uses a new version of the format for the debugging symbols by default, which doesn't match what the Precise Pangolin version of gdb is expecting. There's no later version of gdb in this repository, so you have to compile with -g -gdwarf-2 for compatibility. See http://gcc.gnu.org/gcc-4.8/changes.html for the details.

    (I'm actually currently trying to find a repository with a later version in. Because I don't know what this gdb-minimal in later versions of Ubuntu is, though, I'll probably end up installing the version at https://www.gnu.org/software/gdb/)
    Last edited by james_mcl; August 9th, 2013 at 10:48 PM.
    I'm finding MATE to be an excellent way to retain the GNOME 2 experience in Precise - http://www.mate-desktop.org/

Bookmarks

Posting Permissions

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