My new gcc 3.1 uses old header files...
Scott Robert Ladd
scott@coyotegulch.com
Mon Nov 25 17:41:00 GMT 2002
> 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.
More information about the Gcc
mailing list