This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]