Add a static Link Library -- lib file for the project

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.