On 7/30/2015 2:48 AM, Gisle Vanem wrote: > 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.
I could not find any documentation regarding the linker options you specify in the gcc documentation. Are they mingw-64 specific ? If so where would thye be documented ? ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
