This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with G++ include files (fwd)
- From: llewelly at xmission dot com
- To: Sumith Makam <makampec at iitr dot ernet dot in>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 02 May 2004 05:55:38 -0600
- Subject: Re: Problem with G++ include files (fwd)
- References: <Pine.GSO.4.05.10404302333080.23820-100000@iitr.ernet.in>
Sumith Makam <makampec@iitr.ernet.in> writes:
> Date: Fri, 30 Apr 2004 23:22:35 -0500 (GMT)
> From: Sumith Makam <makampec@iitr.ernet.in>
> To: gcc-help-help@gcc.gnu.org
> Subject: Problem with G++ include files
>
> Hi all
> As part of my work, I need both gcc-3.2 and gcc-2.95. And so, I've
> installed gcc-2.95 after gcc3.2. So, whenever I compile the programs with
> g++-3.2, include files from gcc-2.95 are included. And so, I manually
> included the needed haeder files with -I tag...
[snip]
You should re-install gcc-3.2 and gcc-2.95 with different --prefix
arguments, like this:
../gcc-2.95.3/configure --prefix=/usr/local/gcc-2.95.3 # rest of args
../gcc-3.2.3/configure --prefix=/usr/local/gcc-3.2.3 # rest of
Installing multiple gccs with the same prefix has several problems,
including this one.