Error LNK2019: external symbols that cannot be parsed, errorlnk2019

Source: Internet
Author: User

Error LNK2019: external symbols that cannot be parsed, errorlnk2019

1. It may be the character encoding format of the source file.

2. below

Error LNK2019:

External symbols that cannot be parsed

 

This problem is easy to encounter. Now let me explain how to solve it.

 

Cause:

 

1

The declared function is not implemented.

 

Example:

 

Class

{

Public:

A ();

};

If the constructor is not implemented,

An error occurs when an object is generated.

Solution:

Implement constructor,

If

If there is nothing to write in the constructor, remove the constructor or increase the brackets.

 

Class

{

Public:

A (){}

//

You can also remove the braces.

 

 

Or

Cpp

.

 

};

 

2

,

If this function is included in

Lib

Inside,

In this case,

It is likely that no corresponding

Lib

Solution:

Vs

Series

.

Click project properties to find

Link

 

Add the corresponding

Lib

. For example, in the blue area

With this

Lib

Directory. The directory is added as shown in the second figure.

 

 

 

Or you can use

# Pragma comment (lib ,"

The Library name you need

");

To add

 

 

3

Some old intermediate files are not deleted, and the connection files are not up-to-date.

 

Solution: delete all intermediate files.

Debug release

Delete all directories,

It is generated when the project is compiled ).


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.