This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: Exceptions



> `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

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