Error LNK2019: external symbols that cannot be parsed & quot; public:, lnk2019public

Source: Internet
Author: User

Error LNK2019: the external symbol that cannot be parsed "public:, lnk2019public

Error 1 error LNK2019: the external symbol that cannot be parsed "public: _ thiscall test: test (void )"(?? 0test @ QAE @ XZ). This symbol is used in the function "class test _ cdecl operator + (class test &, class test &)"(?? H @ YA? Reference C: \ Users \ wlp \ Desktop \ Project2 \ Project2 \ source. obj Project2 in AVtest @ AAV0 @ 0 @ Z)

 

When this problem occurs, I checked it online and said that some of the functions in the class are not implemented only when declarations are not implemented, and the header file path is incorrect, but it is useless to make any changes, finally, it is found that {} is missing after the default constructor of the class. In addition, this can be compiled normally.

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.