Undefined Reference to MyClass virtual table

Devrim Erdem devrim@vires.com
Mon Dec 17 07:37:00 GMT 2001


Hi,

I wasn't able to figure out the problem in my huge application for the 
following error. The linker says :

/usr/include/g++/std/bastring.h:73: undefined reference to 
`MyNamespace::MyClass virtual table'

There is a virtual method which MyClass reimplements. If I comment out 
this method, it compiles fine. I am confused because the linker points 
to bastring.h which seems to be unrelated since <string> is not included 
in the header file of MyClass. ( but string is used at some other files. )

Suse 7.1 with gcc-2.95.2-149

Any help is appreciated :)

-- 
Devrim Erdem
-------------------------------------
VIRES Simulationstechnologie GmbH
Oberaustrasse 34
83026 Rosenheim
Germany
phone    +49.8031.463640
fax      +49.8031.463645
email    devrim@vires.com
internet www.vires.com
-------------------------------------




More information about the Gcc-help mailing list