no vtable thunks

Glenn W. Bach glenn@dodgson.wonderland.caltech.edu
Tue Oct 20 15:44:00 GMT 1998


I am trying to compile a series of c++ libraries and programs with egcs
1.1b. Since our code uses both multiple inheritance and virtual inheritance
it is affected by the thunks bug. I recompiled everything (libstdc++ and
all of our libraries and code) with the -fno-vtable-thunks and now I'm
getting some strange errors. It reports that all of the references to
virtual tables are undefined:

code/CBStylerTable.cc:77: undefined reference to `JXStringTable::JTable virtual table'
code/CBStylerTable.o: In function `CBStylerTable::~CBStylerTable(void)':
code/CBStylerTable.cc:150: undefined reference to `JXStringTable::JTable virtual table'
code/CBStylerTableInput.o: In function `JXKeyModifiers::meta(void) const':
./../include/jcore/JPoint.h(.text+0xd1): undefined reference to `JXStringTableInput::JTextEditor virtual table'
code/CBStylerTableInput.o: In function `CBStylerTableInput::~CBStylerTableInput(void)':
code/CBStylerTableInput.cc:48: undefined reference to `JXStringTableInput::JTextEditor virtual table'
code/CBKeyScriptTableBase.o: In function `JPoint::JPoint(void)':
./../include/jcore/JPoint.h(.text+0x101): undefined reference to `JXStringTable::JTable virtual table'
code/CBKeyScriptTableBase.o: In function `CBKeyScriptTableBase::~CBKeyScriptTableBase(void)':
code/CBKeyScriptTableBase.cc:67: undefined reference to `JXStringTable::JTable virtual table'

Any clues as to the cause of this would be appreciated.

Glenn W. Bach
PMA Network/Systems Manager
California Institute of Technology

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: 2.6.2

mQCNAzQxQucAAAEEAKDRj+qxIVg4sk71CigXG+DanD23/JSi4PxR78F0qVVnyCV3
qejYSw8wHdisMeWQb+m6jvm7MpfYar+H3DlalMJ69Tm4DLKMU4Bams+kVEiETis9
8Vj9jLaZ0SvG4vOZj69HcqhEnX8COtqmCBjECy/5wQMFCB1K3h6QzWp9VWLlAAUR
tClHbGVubiBXLiBCYWNoIDxnbGVubkBkb2Rnc29uLmNhbHRlY2guZWR1Pg==
=Uwn5
-----END PGP PUBLIC KEY BLOCK-----






More information about the Gcc-bugs mailing list