VS common error solution: error LNK2019: external symbols that cannot be parsed, common error lnk2019

Source: Internet
Author: User

VS common error solution: error LNK2019: external symbols that cannot be parsed, common error lnk2019

When I used vs2015 for C ++ program development, I still reported the following error when I added header files and library files based on third-party information:

The information on the internet is basically caused by no library or header file added. I checked it many times and the header file and library I added are correct, what caused my program to be compiled. After a long tangle, I finally found the problem. Please read it carefully. I did not notice that I should select the platform when I added the header file and Library. The default platform on the property page is Win32, so I set the Win32 platform, while my computer is an x64 processor and system, even if my Win32 settings are correct, debugging fails.

 

 

After realizing this, I chose the x64 platform, re-added the header file and library, and then selected x64 compilation. This was successful.

This article is posted to save the time for troubleshooting for those who have the same experience later.

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.