Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   BASE::_vtbl (first referenced in ... error (http://www.go4expert.com/forums/basevtbl-referenced-error-t5650/)

ankitrai 3Aug2007 21:08

BASE::_vtbl (first referenced in ... error
 
I have defined some classes which are giving a linker error like the one in the subject. could anyone provide some info on the error, I have understood it has something to do with the virtual table but am not able to figure out what. what makes it more harder is that I have not used any virtual functions in the class..

DaWei 3Aug2007 21:49

Re: BASE::_vtbl (first referenced in ... error
 
Too little information.

ankitrai 6Aug2007 08:38

Re: BASE::_vtbl (first referenced in ... error
 
What i wanted to know was what can cause a error like <class name>::_vtbl (linking error).. I do believe it has something to do with the virtual table but as i had mentioned in my post that I have not used any virtual function, I was unable to understand why am I getting such an error... Although I have inherited from the class ostrstream. could that be the problem?

it career 6Aug2007 19:05

Re: BASE::_vtbl (first referenced in ... error
 
Did you make base class destructor as pure virtual ? post the code here.

ankitrai 6Aug2007 20:21

Re: BASE::_vtbl (first referenced in ... error
 
cant post the code.. confidentiality issue... the base class is ostrstream class and the derived class does not have a single virtual function..

DaWei 6Aug2007 21:08

Re: BASE::_vtbl (first referenced in ... error
 
Perhaps you can construct a small, similar snippet that fails in the same manner. Failing that, you will need to go to the magician/mind reader forum.


All times are GMT +5.5. The time now is 13:57.