Visual Studio C + + include and library

Source: Internet
Author: User

Let's start by introducing several catalogs:

1. System path

System path in VC is "Properties->configuration Properties, VC + + Directories" in "Include directories" the path specified. We can add it here ourselves, can be added in "Include directories", or you can add it in C + +---Additional Include directories

2. Current path

The current path refers to the path where the project file is located in the VC project, i.e. the path where the. dsw file resides.

Example:

1. #include <file.h>

When the VC executes this instruction, it will only find the File.h file in the system directory.

2. #include "file.h"

When the VC executes this instruction, it first searches the system path and, if not, searches the current path.

ref:http://blog.csdn.net/zlwzlwzlw/article/details/4955560

Library

Linker--> General--Additional Library directory, select the directory where Lib resides

Also must be in linker--> Input-to-Additional Dependencies, fill in the Lib name, one per line.

P.s

It is best to put the Include files (header files) and Lib files (library files) in the project directory, to facilitate the subsequent migration

Visual Studio C + + include and library

Related Article

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.