This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
virtual tables were not compiled
- To: egcs at egcs dot cygnus dot com
- Subject: virtual tables were not compiled
- From: amr at doc dot ntu dot ac dot uk
- Date: Tue, 16 Feb 1999 14:16:52 +0000
- Cc: andreas dot hennig at pmail dot net
hi folks!
I had some trouble with my mailer last time, so this mail might be a second version.
I have a rather strange problem with the gcc (says egcs.2.91.57 19980801/egcs-1.1). Annoyingly, I had a similar problem some years back and found a simple solution to it (needless to say: I've forgotten it since).
The compiler compiles my module without any warnings, but does not produce the virtual tables and some inline functions , both are reported missing by the linker. Well, i have implemented them and nm shows that they really are missing from
the .o file, so it must be the compiler's fault. The rest of the rather large project compiles nicely but contains similar constructs. The missing warning/error message of the compiler really annoys me, as it turns the game into a blind-folded search
for the needle.
The only "noughty" thing I've done is a forward declaration so that classes con use each other:
class A;
class B;
class A:public C
{ B *b; ... };
class b:public D
{ A *a; ... };
Has anyone got an idea what might be the reason (or even the solution) for this problem?
Thanks
Andreas
(please reply to Andreas.Hennig@pmail.net as well, not only to the list)