Home > Back-end >  Vs2008 vc solution the problem of the link
Vs2008 vc solution the problem of the link

Time:10-04

Excuse me vs2008 build vc project in the project of the link options have an additional link library here, please add a lib directory and on the program source code to knock

# pragma comment (lib, "libname. Lib") in the program any difference between the real link??


Actual conditions is found when I'm in the project build program lacks a version. The lib (link2019), I search the hard disk version. The lib and record its position, add to the project properties - link - extra repository but build programs and other links of the problem, I have withdrawn before modification, to join the program # pragma comment (lib, "version. Lib") program is compiled through,

I don't understand why, please expert to solve! ~

CodePudding user response:

# pragma comment (lib, "libname. Lib") and attributes - link - input - adding libname. Additional dependencies lib, to specify the current link library catalog, additional library directory,


Didn't see adding additional link library
  • Related