This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
-------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]