This is the mail archive of the gcc-help@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]

Re: More than one lib file


On Mar 10, 2000, "Martin v. Loewis" <martin@loewis.home.cs.tu-berlin.de> wrote:

>> So, could give me a advice how and where to begin
>> this?

> Are they using two different gcc installations as well? If so, you can
> put libstdc++ into the directory where cc1plus lives; gcc will pick it
> up from there. After you've made the change, you should verify with
> gcc -v that it does the right thing.

It's not just a matter of GCC finding the right library: if it's a
dynamic library, the executable will have to find it too, and that's
where the problems may start.  If the library sonames are different,
there should be no problem if both are in /usr/local/lib.  But if
they're not, you may have to add -R/path/to/the/right/library to the
link command in order for the executable to find the appropriate
library at run-time.

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaranį
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me


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