K
Karl Ebener
Hi!
I have created a program using several classes with inheritage. When I
compile and link, I get the following error:
:$ g++ service2.cpp Service.cpp Application.cpp Message.cpp
MessageQueue.cpp MessageFragmenter.cpp SingleMessage.cpp
/tmp/ccsrT4jU.o(.gnu.linkonce.t._ZN9c_ServiceD1Ev+0xb): In function
`c_Service::~c_Service [in-charge]()':
: undefined reference to `vtable for c_Service'
/tmp/ccF4Q9O0.o(.text+0x27): In function
`c_Service::c_Service[not-in-charge](long, bool)':
: undefined reference to `vtable for c_Service'
/tmp/ccF4Q9O0.o(.text+0x8b): In function
`c_Service::c_Service[in-charge](long, bool)':
: undefined reference to `vtable for c_Service'
collect2: ld returned 1 exit status
I think, I had this error once before, but I don't remember, what I did
then. What is this vtable? It is not an attribute of my classes.
What's wrong??
Tnx very much!
Karl
I have created a program using several classes with inheritage. When I
compile and link, I get the following error:
:$ g++ service2.cpp Service.cpp Application.cpp Message.cpp
MessageQueue.cpp MessageFragmenter.cpp SingleMessage.cpp
/tmp/ccsrT4jU.o(.gnu.linkonce.t._ZN9c_ServiceD1Ev+0xb): In function
`c_Service::~c_Service [in-charge]()':
: undefined reference to `vtable for c_Service'
/tmp/ccF4Q9O0.o(.text+0x27): In function
`c_Service::c_Service[not-in-charge](long, bool)':
: undefined reference to `vtable for c_Service'
/tmp/ccF4Q9O0.o(.text+0x8b): In function
`c_Service::c_Service[in-charge](long, bool)':
: undefined reference to `vtable for c_Service'
collect2: ld returned 1 exit status
I think, I had this error once before, but I don't remember, what I did
then. What is this vtable? It is not an attribute of my classes.
What's wrong??
Tnx very much!
Karl