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]

Re: More than one libstdc++.


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


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