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]

exceptions, rtti for an egcs 1.1.1 cross compiler


Hi,

I've compiled egcs 1.1.1 + binutils 2.9.1 as a cross compiler hosted on
i686 Linux and targeting an ARM aout embedded system. 

In order to provide runtime support for exceptions, I've pulled libgcc2.c,
cp/exception.cc, cp/tinfo.cc and cp/tinfo2.cc from the distribution into a
C++ support library, compiling the .cc files with -frtti -fexceptions.

However, when I link a C++ application with this library I get a number of 
RTTI type_info node undefined symbols (unmangled as follows):

bad_exception type_info node
exception type_info node
__class_type_info type_info node
__user_type_info type_info node
__si_type_info type_info node
type_info type_info node
bad_typeid type_info node
bad_cast type_info node
__array_type_info type_info node
__ptmd_type_info type_info node
__ptmf_type_info type_info node
__func_type_info type_info node
__builtin_type_info type_info node
__pointer_type_info type_info node

I note that tinfo2.cc declares type_info nodes for the builtin types but I
can't readily see where or how the above type_info nodes should be defined.

Any help would be greatly appreciated.

Regards,

Damian.

[ Damian P. Gilmurray             email:    dgilmurray@adaptivebroadband.com
    Adaptive Broadband Limited      www:    http://www.adaptivebroadband.com/
      The Westbrook Centre        phone:           +44 (0)1223 713417
        Cambridge CB4 1YQ U.K.      fax:           +44 (0)1223 713714        ]


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