Thread: Need Help with new gcc

  1. #1
    Registered User
    Join Date
    Sep 2001
    Location
    Fiji
    Posts
    212

    Question Need Help with new gcc

    Hi all

    Im having trouble getting the new version of gcc-3.0.4 to install properly.

    I follow the steps as follow

    1. Download source
    2. type from destination directory
    sh ../srcdir/configure
    3. make bootstrap
    4. make -k check
    5. make install

    then i type at the prompt
    $ gcc -v

    and it tells me it is the old one
    gcc 2.96-81


    Help would be appreciated. I think i know where the problem is but not sure how to fix it. I think i need to add options to the second step. These options can be found at the http://gcc.gnu.org.

    SYSTEM DETAILS

    redhat 7.1
    kernel ------ 2.4.2-2
    gcc --------- 2.96-81
    glibc-devel - 2.2.2-10
    make -------- 3.79.1-5
    binutils ---- 2.10.91.0.2-3

    Any other info needed email me directly at
    [email protected]

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    202
    While I'm not entirely certain, I'm willing to bet that the new version just isn't in your PATH properly. It sounds like you have a symlink to your older version, or your older version is actually installed in /usr/bin.

    Try making your /usr/bin/gcc file a symlink to the new version of the gcc executeable. If I'm right, that'll clear it up.

    starX
    www.axisoftime.com

  3. #3
    Registered User
    Join Date
    Sep 2001
    Location
    Fiji
    Posts
    212
    Yes that is practically what it was. After posting this message I tried again and voila it worked because I added an option to the end. But the problem is now that I installed it because at uni we need a compiler to comply with the new c++ standard. I compiled my source code on the old one worked alright (least it compiled) now it won't compile. I think this is something I'll I have to work through though. Thanks for you help anywayz.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Replies: 4
    Last Post: 09-02-2007, 08:47 PM
  3. segfault with gcc, but not with TC
    By koodoo in forum C Programming
    Replies: 15
    Last Post: 04-23-2007, 09:08 AM
  4. Compiles on gcc 3.3 but not on gcc 4.0.3
    By cunnus88 in forum C++ Programming
    Replies: 5
    Last Post: 03-29-2007, 12:24 PM
  5. gcc
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 10-22-2003, 03:46 PM