[Error LNK2019: unresolved external symbol] problem solution

Xu Jiumei write code with visual studio and began a whole today, and F5 was up the whole Mongolia, and finally sort out how to do under this situation:

(A) function is defined not only declared, this is the only shot I declared in the header file, but behind useless defined. The solution is to define, even empty function will solve the problem.

(B) Calling external libraries, there is no reference to dependence, the solution is twofold:

1. VS project properties for deployment, the corresponding reference library;

2. Use #pragma comment (lib, "a library .lib") source solutions, this can be loaded later using namespace;

(C) choosing the wrong platform , sometimes some libraries are not consistent between 32 and 64, it can lead to such problems. The solution is to look at switching platform, the test is still in debug mode.

 

Guess you like

Origin www.cnblogs.com/wayne-tao/p/12525875.html