BASE::_vtbl (first referenced in ... error

Discussion in 'C' started by ankitrai, Aug 3, 2007.

  1. ankitrai

    ankitrai New Member

    Joined:
    Aug 3, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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..
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    Too little information.
     
  3. ankitrai

    ankitrai New Member

    Joined:
    Aug 3, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    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?
     
  4. it career

    it career New Member

    Joined:
    Apr 8, 2007
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Designing
    Home Page:
    http://ijug.net/
    Did you make base class destructor as pure virtual ? post the code here.
     
  5. ankitrai

    ankitrai New Member

    Joined:
    Aug 3, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    cant post the code.. confidentiality issue... the base class is ostrstream class and the derived class does not have a single virtual function..
     
  6. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice