Problem with G++ include files (fwd)

llewelly@xmission.com llewelly@xmission.com
Sun May 2 11:55:00 GMT 2004


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.



More information about the Gcc-help mailing list