I have the following situation with mingw gcc 3.4.4 on Windows 2000: static libraries a.lib and b.lib; b.lib uses class C defined in a.lib. application links to a.lib and b.lib (with command -la -lb). The linker gives an error saying "undefined reference to `vtable for C'". If I make b.lib use another class from a.lib, I get an extra similar error for that class.
What am I doing wrong? I tried to add the command -la when building b.lib, but that doesn't change anything (I think it is useless).
The same libraries and application work just fine with Visual Studio.