This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Installing gcc in a local directory
- From: "Timothy C Prince" <tprince at myrealbox dot com>
- To: ita-garpaljo at itacyl dot es
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 23 Mar 2007 20:28:47 +0000
- Subject: Re: Installing gcc in a local directory
- Reply-to: tprince at nospamcomputer dot org
-----Original Message-----
From: Jose Luis GarcÃa Pallero <ita-garpaljo@itacyl.es>
To: <gcc-help@gcc.gnu.org>
Date: Fri, 23 Mar 2007 14:15:15 +0100
Subject: Installing gcc in a local directory
Hi,
Only LD_LIBRARY_PATH=/home/user/gcc-4.2.0/lib:$LD_LIBRARY_PATH?
What about include files? For example, if I want to compile a tipycal hello world program in C, what stdio.h use the compiler, the new 4.2.0 or the old 4.1.2? If I want to compile a program with gcc-4.1.2 instead of 4.2.0, what about the new LD_LIBRARY_PATH=/home/user/gcc-4.2.0/lib:$LD_LIBRARY_PATH order?
Need add LD_LIBRARY_PATH=/home/user/gcc-4.2.0/lib:$LD_LIBRARY_PATH order if I compile, for example, gcc/g77 too?
___________________________________________
You can check by
gcc -v
and
gcc -print-search-dirs
to see that the compiler is correctly using its own paths for its include files.
Tim Prince