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 ).