Home > Software engineering >  Cannot resolve the external symbol
Cannot resolve the external symbol

Time:09-20

Compile errors error LNK2019: cannot resolve the external symbol,

Added,
Extern "C" {
# include "./include/x.h "
}

And
# pragma comment (lib, x.l "ib")

Or error,

What is the solution?

Thank you,


CodePudding user response:

Lib and header file version is consistent? May have functions in the header file,.lib file didn't realize

CodePudding user response:

Cannot resolve the outside of the function name is what? Is defined in the xlib? Or other places

CodePudding user response:

Calling convention is inconsistent??

CodePudding user response:

To ensure correct path first,,,

CodePudding user response:

There is no this function in the library

CodePudding user response:

Header files in a function definition, but there were no.lib file, the link when I couldn't find it

CodePudding user response:

To ensure correct path first,,,

CodePudding user response:

Added,
Extern "C" {
# include "./include/x.h "
}

What is this SAO operate

CodePudding user response:

Problem description is not detailed,,,

CodePudding user response:

Generally are lib file path set wrong, such as # pragram comment (lib, ".. \ \ Debug \ \ x.l ib ") setting
  • Related