Edward Diener wrote: > If I remove the declaration and definition of ex_xml_exception::what(), > since it is not needed, when linking I get: > > throw_exception_ex.o:throw_exception_ex.cpp:(.rdata$_ZTV16ex_xml_exception[__ZTV16ex_xml_exception]+0x20): > undefined reference to `virtual thunk to ex_exception::what() const' > throw_exception_ex.o:throw_exception_ex.cpp:(.rdata$_ZTC16ex_xml_exception4_12ex_exception[__ZTC16ex_xml_exception4_12ex_exception]+0x38): > undefined reference to `virtual thunk to ex_exception::what() const' > collect2.exe: error: ld returned 1 exit status
AFAICS, that is because you have virtualised the whole 'ex_exception' class in your 'ex_xml_exception' class. Why? What happens if you virtualise only those functions you need to specialize? Another thing is to get some hints from a .map-file. Add "-Wl,--print-map,--sort-common,--cref > file.map" at the of the link-cmd. -- --gv ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public