This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: More than one libstdc++.
- To: Gerhard Esterhuizen <goof at dsp dot sun dot ac dot za>
- Subject: Re: More than one libstdc++.
- From: Gabriel Dos_Reis <Gabriel dot Dos_Reis at sophia dot inria dot fr>
- Date: 09 May 1999 11:59:57 +0200
- Cc: egcs at egcs dot cygnus dot com
- Organization: I.N.R.I.A Sophia-Antipolis (France)
- References: <Pine.LNX.4.10.9905090314480.17620-100000@pablo.dsp.sun.ac.za>
Gerhard Esterhuizen <goof@dsp.sun.ac.za> writes:
| Hi,
|
| I have questions regarding having more than one libstdc++ installed, and
| selecting a specific one at compile time.
|
| I compiled and installed the egcs-1.1.2 release and the libstdc++ that
| came with it. It seems to be happy.
|
| Now I need some functionality (valarray <>), only present in
| libstdc++-2.90.4, so i compiled libstdc++-2.90.4 without recompiling
| egcs and installed it in it's own directory ( /usr/local/libstdc++3 )
For the record, I sent some days ago a patch containing a back-port
of v3-valarray usable with egcs-1.1.2. You might want to apply it
http://egcs.cygnus.com/ml/egcs-patches/1999-04/msg00952.html
- get egcs-1.1.2 tarball
- apply the patch to egcs-1.1.2/libstdc++
- build the compiler the way you would have without the patch
- have fun.
| Question now is: How can i select my libstdc++ at compile-time between the
| default one (from egcs-1.1.2) in /usr/include/g++ and the new
| libstdc++-2.90.4 one in /usr/local...
To compile and link against v3, you have to specify the include and
the lib directiories like:
g++ -I/usr/local/libstdc++3/include/g++-v3/ foo.C \
-L/usr/local/libstdc++3/lib
Hope this helps,
-- Gaby