This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: My new gcc 3.1 uses old header files...
- From: "Scott Robert Ladd" <scott at coyotegulch dot com>
- To: "gcc List" <gcc at gcc dot gnu dot org>
- Date: Mon, 25 Nov 2002 14:21:39 -0500
- Subject: RE: My new gcc 3.1 uses old header files...
> I have successfully built and installed GCC. I have some
> compilation errors
> that I hadn't with the 2.96 version so now I can't compile my
> program having done no changes.
Hi,
With gcc 3.x, the location of many header files moved -- thus, if you
install gcc 3.x over 2.9x, some of the old header files will remain and
cause compilation problems.
I install each version of the compiler to a separate directory tree, using
the
--prefix=/opt/gcc-3.2.1 option on configure.
I have maintain a /opt/gcc link that maps to the version of the compiler I
use, and use that in setting my LD_LIBRARY_PATH, INCLUDE, LIB, and PATH
variables. By changing what /opt/gcc points to allows me to switch between
compiler versions easily.
--
Scott Robert Ladd
Coyote Gulch Productions, http://www.coyotegulch.com
No ads -- just very free (and somewhat unusual) code.