LNK unresolved external symbol error summary

Error Analysis:

This is an error in the linking process, the reason being given here, but there is no error in the compilation process, indicating .h file that contains the error method has been included, but the corresponding cpp file or library file link does not find, so it is very wronged reported this error.

What possible reason that would cause this problem?

1. The lack of corresponding cpp files (such as in the figure below, in main.cpp, add the .h file, but there is no corresponding function in the project implementation file. At first I resisted for LNK error, because it's being given information watching too uncomfortable later found just look at a few key information on it: which is the obj file, what is the error function name)

 

 2. The lack of correspondence lib file

  2.1 lib file not add or wrong path (look in the library catalog VS has not added, or search in the code "#pragma comment (lib,)")

  Version 2.2 lib files do not correspond (this is sometimes hard to think of, such as when using windbg's lib, VS where the environment is 32 that he thought too much to add into the 64's lib path)

Guess you like

Origin www.cnblogs.com/Stephen-Qin/p/12152254.html