Ld: unsatisfied symbol "virtual table of baseclass"

Source: Internet
Author: User

HU-UX IA64 11.31 LD errors:

Ld: unsatisfied symbol "type info of baseclass" in file deriveclass. o
Ld: unsatisfied symbol "virtual table of baseclass" in file baseclass. O]
2 errors.

Because there is no realization of some functions declared in the baseclass. But it hard to find out, as there is no hints about the function's name.

So you can do as follows:

1) try to realize like:

Class baseclass

{

//.....

Virtual int funca ()

{Return 0;} // Add this line

//.....

};

 

2 declare those functions as pure virtual fuctions:

Class baseclass

{

//.....

Virtual int funca ()= 0; // Add "= 0"

//.....

};

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.