VS contains directories, additional dependencies, library directories, and specific settings

Source: Internet
Author: User

Included contents: #include the search directory in headerfile.h. If there is XXX.h found, set this directory can be resolved. Additional Dependencies: CThe Library of + + places the declarations of functions and classes in *.h, and implements them in *.cpp or *.cc. After compiling, *.cpp,*.cc,*. c is packaged into a. lib file to protect the source code. Therefore, to use a library, in addition to include his header file, but also in the link process to add lib. This is set in the attached link library. In fact, the general library will use#pragmaComment (lib, "Xxx.lib") to setThis process error will appear link error, probably "undefined function xxx". Library directory: Is the directory that is looking for the. lib file. If you set the error, the link error will prompt"I can't find the XXX.lib .". In the VS project, add C/c++basic steps for external header files and libraries in the project:1, add a project header file directory: Project---Properties---configuration properties---C + +---general---Additional Include Directories: Add header files to the directory. 2, add a file reference to the Lib Static Library Path: Project---Properties---configuration PROPERTIES---linker---general---Additional Library directory: Add lib file directory. Then add a project reference to the Lib file name: Project---Properties---configuration PROPERTIES---linker---input---Additional dependencies: Add the Lib file name. 3, add DLL dynamic library referenced by the project: Place the referenced DLL in the same directory as the project's executable file.
There are many projects in one solution to set up one project as a startup project
The start of the solution is from the public under the SExplorer.exe start!!! Here's how to set public as the startup project

VS contains directories, additional dependencies, library directories, and specific settings

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.