In visualstudio2008
Select Project Properties> Configuration Properties> linker> input:
Additional dependencies refer to input items, such as A. Lib file.
Select Project Properties> Configuration Properties> linker> General:
When you use # pragma comment (Lib, "A. lib") for the additional library directory, search for the path list of A. lib to include this path.
On Microsoft Visual C ++ 6.0
SlaveProject
Menu selection
Setting
And then selectLink
Page tag. SlaveCategory
SelectGeneral
,
Then
Object/library modules
Text Box AdditionLib
File.
If you want to link a Lib, what is the difference between directly adding it to the additional dependency and adding its directory to the additional library directory?
Add to additional dependencies: Your lib file is actually included.
Add the directory where it is located to the directory of the additional library: only the inclusion directory tells ide that this is also used to search for library files without a specified path.
The C ++ file must have a header file and a lib file before it can be compiled and passed, and the corresponding DLL file must be called at runtime; while C # directly uses the header file and Lib
Files are encapsulated in DLL files. Therefore, C # programming does not need to introduce these two files, but the DLL files need to be referenced at runtime or during compilation.