------- Additional Comments From drow at false dot org 2010-07-07 16:04 ------- Subject: Re: Add suggestion to error "undefined reference to `vtable for XXX'"
On Wed, Jul 07, 2010 at 03:50:32PM -0000, manu at gcc dot gnu dot org wrote: > I understand your frustration, but linker and compiler do not share a lot of > information and I think there is no way (right now) to give a good diagnostic > for this case. The linker does not know about vtables, pure functions and C++ > in > general. If there's an undefined reference to a vtable, what more does the linker need? ------- Additional Comments From phresnel at gmail dot com 2010-07-07 21:37 ------- (In reply to comment #3) > I understand your frustration, but linker and compiler do not share a lot of > information and I think there is no way (right now) to give a good diagnostic > for this case. The linker does not know about vtables, pure functions and C++ > in > general. I understand that there is not any C++ information available at that point of linking, but given the error message, it's prolly possible to look-up a suggestion somewhere, or even just extend the error message in question. > > I don't think that LLVM/Clang gives a better diagnostic here, because they > will > need a linker integrated tightly in the compiler, and (so far) they are using > the GNU linker. If you can show us otherwise, that would be great because I > really wish we could provide better diagnostics from the linker. I did not know this, interesting. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11793 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils