This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Undefined Reference to MyClass virtual table
- From: Devrim Erdem <devrim at vires dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 17 Dec 2001 16:29:41 +0100
- Subject: Undefined Reference to MyClass virtual table
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
-------------------------------------