VS Environment Path

Source: Internet
Author: User

In the properties page of VS, "VC + + Directory includes directory (VC + + Directory->include directory)" and "add-on Include directory (C/c++->additional inlude directory) "and other directories with similar names, I don't know where the difference is. Find Instructions:

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

It is noted that the difference between the two included paths is the priority of the search.

Another post: What is the difference between "included directories" and "Additional Include Directories" in VS2010

It is also pointed out that one is to modify the value of the include macro of the system, is global, one for the project, no impact on other projects. And a solution can have multiple projects.

More details can be found in MSDN related documents, VC + + Directories property Page.

This document refers to the "VC + + Directory source Directory (VC + + Directory->include directory)" is to search the path of IntelliSense, perhaps next time IntelliSense has a problem, you can try.


A similar problem is the "executable directory", which is more thorough in this article:

In the development process, how to let Visual Studio link these lib and DLL files will be better?

Search MSDN for "How To:set Environment Variables for Projects".

(It ' s project>properties>configuration properties>debugging "Environment" and "Merge environment" Properties For those who is in a rush.)

The syntax is name=value and macros can are used (for example, $ (OutDir)).

For example, to prepend C:\Windows\Temp to the PATH:

path=c:\windows\temp;%path%

Similarly, to append $ (TargetDir) \dlls to the PATH:

path=%path%;$ (TargetDir) \dlls

Need to explain is "VC + + Directory executable Directory (VC + + directory->executable directory)" is only in the build when the search, not including debugging and execution.

Compile,build and rebuild (VS2008)




VS Environment Path

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.