External symbols that cannot be parsed by C + +

Source: Internet
Author: User

Error 3 LNK2001:
unresolved external symbol "public:static struct table * security::head" ([email protected]@@[email protected]@a) F:\github\membership\ Security\security\security.obj

This error occurs when a static variable is declared in the class, but is not defined outside the class, causing the error to be resolved by simply defining it outside the class.

Security.obj:error LNK2005: "public:static struct table * security::last" (email protected]@@[email protected]@a) already in Defined in Main.obj
1>f:\github\membership\security\debug\security.exe:fatal Error LNK1169: Find one or more multi-definition symbols

This error occurs when a static variable in a class is defined in the header file area, and a static variable is defined in a. cpp file to be resolved.

External symbols that cannot be parsed by C + +

Related Article

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.