Results 1 to 3 of 3

Thread: Roll Back Compiler or Distro?

  1. #1
    Join Date
    Nov 2008
    Location
    Georgia, USA
    Beans
    41
    Distro
    Ubuntu 10.04 Lucid Lynx

    Roll Back Compiler or Distro?

    Should I keep 12.04 and replace it's g++ compiler (4.6.3-1) with an older compiler (e.g., 4.5.2-6) that will compile the code I need to compile, or should I delete my 12.04 installation, replacing it with an 11.04 installation, which includes a compiler that works with this code?

    Background: I have an extensive C++ library provided by a third party. I need to compile that library, and add some code to it. Modifying the existing library, or getting the providers to update it to work with a newer compiler are not options.

    I have multiple Ubuntu installations. I'll list them here, along with the corresponding g++ version, and whether or not they will compile this code:

    10.04 4.4.3-4 works

    11.04 4.5.2-6 works

    12.04 4.6.3-1 does not work.

    I would be appreciative of any suggestions regarding how to proceed.
    System76 Pangolin (Panp5) Lucid Lynx

  2. #2
    Join Date
    Jul 2012
    Beans
    55

    Re: Roll Back Compiler or Distro?

    I don't know which is the better choice, but it seems that you can install the older version of gcc in parallel with the current version.

    I am looking at Android development and was looking at this blog entry.
    http://blog.markloiseau.com/2012/07/...-ubuntu-12-04/

    In that entry, the author installs gcc 4.4 (and related c++ compiler) and then does some re-linking to use it. He suggests that it is reversible to 4.6 since the new version is not deleted.

    Anyway, seems like it should be fairly quick to try out.

  3. #3
    Join Date
    Nov 2008
    Location
    Georgia, USA
    Beans
    41
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Roll Back Compiler or Distro?

    Thanks, mevun! I'll give it a try.
    System76 Pangolin (Panp5) Lucid Lynx

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
  •