This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: Exceptions
- To: Chris Prince <prince at wcug dot wwu dot edu>
- Subject: Re: Exceptions
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Tue, 28 Sep 1999 11:40:15 -0700 (PDT)
- cc: libstdc++ at sourceware dot cygnus dot com
> `basic_ostream<wchar_t, char_traits<wchar_t> >::operator<<(basic_ios<wchar_t, char_traits<wchar_t> > &(*)(basic_ios<wchar_t, char_traits<wchar_t> > &))':
> /home/chrisp/compiler/bld-libstdc++/src/../../libstdc++-2.90.6.1/bits/std_ostream.h:116: undefined reference to `__eh_rtime_match'
> /home/chrisp/compiler/bld-libstdc++/src/../../libstdc++-2.90.6.1/bits/std_ostream.h:116: undefined reference to `__start_cp_handler'
> /usr/local/lib/libstdc++.a(misc-inst.o): In function `basic_ostream<wchar_t, char_traits<wchar_t> >::operator<<(ios_base &(*)(ios_base &))': /home/chrisp/compiler/bld-libstdc++/src/../../libstdc++-2.90.6.1/bits/std_ostream.h:136: undefined reference to `__eh_rtime_match'
> /home/chrisp/compiler/bld-libstdc++/src/../../libstdc++-2.90.6.1/bits/std_ostream.h:136: undefined reference to `__start_cp_handler'
My gcc-2.95.1 build directory has a libgcc.a with the following:
% nm libgcc.a -A | grep __eh_rtime_match
libgcc.a:_eh.o:000003dc T __eh_rtime_match
% nm libgcc.a -A | grep __start_cp_handler
libgcc.a:exception.o:00000100 T __start_cp_handler
Sounds like you are linking against the wrong version of libgcc.a -- you
should check your paths and make sure that when you compile you are
indeed using the libraries and headers that you expect. (g++ -v -H is
useful for this purpose.)
-Benjamin