This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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