[Bug ld/2478] undefined reference vtable if symbol is in archive
--- Additional Comments From amodra at bigpond dot net dot au 2006-03-23 21:37 --- See ld info, node "Options" for info on when ld extracts objects from archives. -- What|Removed |Added -
[Bug ld/2478] New: undefined reference vtable if symbol is in archive
Linking fails with b.o:b.cpp:(.text$_ZN4TestC1Ev[Test::Test()]+0x8): undefined reference to `vtable for Test' if object file is stored in an archive but succeeds if not. Reproducible with this testcase: ### a.h ### class Test { public: virtual void do_something(); }; ### a.cpp ### #include