Differences between "Include Directories" and "Additional include Directories" in VC2010

Source: Internet
Author: User

By right-clicking on a project, you can see that there are two places to set up the include related directories:

1. VC + + Directories Include directories
2. Additional Include Directories

Don't know what the difference is, after getting the answer on MSDN:

"VC + + Directories Include Directories": Directory settings displayed in the window is the directories that Visual Studio would search for include files referred to your source code files. Corresponds to environment variable INCLUDE. More Information:http://msdn.microsoft.com/en-us/library/t9az1d21 (v=vs.80). aspx

"Additional Include Directories": The directory to being added to the list of directories searched For include files. More information:http://msdn.microsoft.com/en-us/library/73f9s62w (v=vs.80). aspx

The following link is quite clear:

The compiler searches for directories in the following order:

1.Directories containing the source file.

2.Directories specified with THE/I option, the order is that CL encounters them.

3.Directories specified in the INCLUDE environment variable.

The/I in Order2 is set up by the Additional Include directories.

The Include in Order3 is set by VC + + directories, include directories.

Differences between "Include Directories" and "Additional include Directories" in VC2010

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.