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]

vtable


Hello,

This is a linking problem. 
I am implementing a derived class (OcrPattern) from a
base one (OcrEngine), using virtual functions.
Any explanation ?

remap.o: In function `OcrEngine::~OcrEngine
[not-in-charge]()':
remap.o(.gnu.linkonce.t._ZN9OcrEngineD2Ev+0xe):
undefined reference to `vtable for OcrEngine'
OcrPattern.o: In function `OcrPattern::~OcrPattern
[in-charge]()':
OcrPattern.o(.gnu.linkonce.t._ZN10OcrPatternD1Ev+0x3e):
undefined reference to `vtable for OcrEngine'
OcrPattern.o: In function `OcrPattern::~OcrPattern
[in-charge deleting]()':
OcrPattern.o(.gnu.linkonce.t._ZN10OcrPatternD0Ev+0x3e):
undefined reference to `vtable for OcrEngine'
OcrPattern.o(.gnu.linkonce.d._ZTI10OcrPattern+0x10):
undefined reference to `typeinfo for OcrEngine'
collect2: ld returned 1 exit status
make: ** [remap] Erro 1


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


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