[23:31:21] bzandber@linux-23 taak8$ gcc -o exc Exception.cc Exception.cc: In function âvoid h(int)â: Exception.cc:50: warning: exception of type âYâ will be caught Exception.cc:47: warning: by earlier handler for âXâ /tmp/ccL7tls3.o(.text+0x20): In function `f(int)': Exception.cc: undefined reference to `__cxa_allocate_exception' /tmp/ccL7tls3.o(.text+0x33):Exception.cc: undefined reference to `__cxa_throw' /tmp/ccL7tls3.o(.text+0x3d):Exception.cc: undefined reference to `__cxa_allocate_exception' /tmp/ccL7tls3.o(.text+0x50):Exception.cc: undefined reference to `__cxa_throw' /tmp/ccL7tls3.o(.text+0x5a):Exception.cc: undefined reference to `__cxa_allocate_exception' /tmp/ccL7tls3.o(.text+0x71):Exception.cc: undefined reference to `typeinfo for char const*' /tmp/ccL7tls3.o(.text+0x77):Exception.cc: undefined reference to `__cxa_throw' /tmp/ccL7tls3.o(.text+0x9a): In function `g(int)': Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0x9f):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0xc9):Exception.cc: undefined reference to `__cxa_begin_catch' /tmp/ccL7tls3.o(.text+0xd9):Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0xde):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0xe6):Exception.cc: undefined reference to `__cxa_rethrow' /tmp/ccL7tls3.o(.text+0xf1):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x10a):Exception.cc: undefined reference to `__cxa_begin_catch' /tmp/ccL7tls3.o(.text+0x11a):Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0x11f):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0x138):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x145):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x15e):Exception.cc: undefined reference to `__cxa_begin_catch' /tmp/ccL7tls3.o(.text+0x16e):Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0x173):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0x180):Exception.cc: undefined reference to `__cxa_allocate_exception' /tmp/ccL7tls3.o(.text+0x193):Exception.cc: undefined reference to `__cxa_throw' /tmp/ccL7tls3.o(.text+0x19e):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x1d4): In function `h(int)': Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0x1d9):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0x203):Exception.cc: undefined reference to `__cxa_begin_catch' /tmp/ccL7tls3.o(.text+0x213):Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0x218):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0x220):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x230):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x249):Exception.cc: undefined reference to `__cxa_begin_catch' /tmp/ccL7tls3.o(.text+0x259):Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0x25e):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0x266):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x273):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x28c):Exception.cc: undefined reference to `__cxa_begin_catch' /tmp/ccL7tls3.o(.text+0x29c):Exception.cc: undefined reference to `std::cout' /tmp/ccL7tls3.o(.text+0x2a1):Exception.cc: undefined reference to `std::basic_ostream >& std::operator<< >(std::basic_ostream >&, char const*)' /tmp/ccL7tls3.o(.text+0x2a9):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x2b6):Exception.cc: undefined reference to `__cxa_end_catch' /tmp/ccL7tls3.o(.text+0x327): In function `__tcf_0': Exception.cc: undefined reference to `std::ios_base::Init::~Init()' /tmp/ccL7tls3.o(.text+0x354): In function `__static_initialization_and_destruction_0(int, int)': Exception.cc: undefined reference to `std::ios_base::Init::Init()' /tmp/ccL7tls3.o(.gnu.linkonce.r._ZTI1Y[typeinfo for Y]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info' /tmp/ccL7tls3.o(.gnu.linkonce.r._ZTI1X[typeinfo for X]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' /tmp/ccL7tls3.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0' collect2: ld returned 1 exit status [23:36:10] bzandber@linux-23 taak8$