c++:error2019, unresolved external command blabla~

Source: Internet
Author: User

Summary of issues that occur for this reason:

1, the corresponding additional library is not included, note that the directory of the additional library is/

2, the function does not have a corresponding class, but the method is called in main with a class of objects.

In fact, when the error shows fun () as an unresolved external command, I F12 two options to choose, but I did not find-it is the function of this class, F12 is also given the CPP and H file in the definition of fun (). It is clear that the fun () method in the CPP file is not connected to the fun () declared in the header file class, causing the IDE to assume that there are two fun () methods.

3, if the constructor is a problem, pay attention to the formal writing of the constructor function. Declaration is different from other functions, it is a curly brace {}

c++:error2019, unresolved external command blabla~

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.