From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: "Martin v. Loewis" Cc: gregzh@yahoo.com, gcc-help@gcc.gnu.org Subject: Re: More than one lib file Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: References: <20000309214539.15348.qmail@web1601.mail.yahoo.com> <200003100832.JAA01061@loewis.home.cs.tu-berlin.de> X-SW-Source: 2000-q1/msg00368.html Message-ID: <20000401000000.kgxr0P_GV6WvKW_f1tvPDboBjjSu6pXdrJl2pevnXu0@z> On Mar 10, 2000, "Martin v. Loewis" 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