This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Using libstdc++-2.90.4 with egcs 1.1.2
- To: gutier@intergate.bc.ca
- Subject: Re: Using libstdc++-2.90.4 with egcs 1.1.2
- From: Gabriel Dos_Reis <Gabriel.Dos_Reis@sophia.inria.fr>
- Date: 06 May 1999 00:47:00 +0200
- Cc: Gabriel Dos_Reis <Gabriel.Dos_Reis@sophia.inria.fr>, egcs@egcs.cygnus.com, libstdc++@sourceware.cygnus.com
- Organization: I.N.R.I.A Sophia-Antipolis (France)
- References: <xajlnf4kbpw.fsf@korrigan.inria.fr> <99050422033301.00534@tiana>
Gerald Gutierrez <gutier@intergate.bc.ca> writes:
| > | I tried to install libstdc++ into the same directory as egcs. This caused
| > | an overwrite of the libstdc++ shared library and an addition of g++-v3 in
| > | the include directory. I set my CPLUS_INCLUDE_PATH to point to that
| > | directory, and things compiled file, but I get link errors with two
| > | symbols: bad_alloc and something else ( can't remember now ).
| >
| > 'exception table missing'?
|
| Yes that's it!
|
| > You have to compile libgcc with the following options:
| > -fnew-abi -fno-honor-std
|
| Please excuse my complete ignorance but this is my first time compiling a
| compiler (still doesn't "feel" right to me) and compiling libstdc++. I
| don't see libgcc in libstdc++; is it a part of egcs? How do I go about
| adding the options you mentioned above into the build process? Currently I
| only do a ./configure --prefix=$whereever ; gmake ; gmake install.
The simplest way to go is:
* build the compiler with '-fnew-abi -fno-honor-std' by saying
CFLAGS='-fnew-abi -fno-honor-std' CXXFLAGS='-fnew-abi -fno-honor-std' \
egcs/configure --prefix=$whereever --remaining-options
gmake bootstrap; gmake install
* build libstdc++-v3 with the same options
Note: any program linked against libstdc++ should then be compiled
with '-fnew-abi -fno-honor-std'
Hope this helps
-- Gaby