LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2005, 10:50 AM   #1
dangerousdave
Member
 
Registered: Feb 2005
Distribution: Ubuntu 8.04
Posts: 100

Rep: Reputation: 15
GCC version conflict, I think


I installed the latest version of gcc recently and I seem to be having problems compiling some programs since the old version of gcc is still there. It looks to me as if some programs are using the old headers but the new compiler...

The first thing I tried was reinstalling the new gcc, but now THAT wont compile, seemingly because of the same problem - i.e. whilst running make I see in the output /usr/include/c++/...../, but the new gcc is in /usr/local/gcc-3.4.2/....../ (cant remember the details of version, directory, etc right now).

Are there any config files or environment variables to set to tell linux which gcc to use? Should I remove the old gcc to remove the confusion?
 
Old 03-02-2005, 11:43 AM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Gentoo had a problem related to this a while back: I don't know if your distro supports it, but there was a script called fix_libtool_files.sh that resolved the issue.

What are the exact errors you are getting?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 03:54 PM
Installation version conflict nyguy Linux - Software 0 02-20-2005 01:34 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 09:17 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 01:07 AM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration