VC2010中"Include Directories" 和 "Additional Include Directories"的区别
2015-07-29 11:45
399 查看
右键一个Project,可以发现有两个地方设置Include的相关目录:
1. VC++ Directories -> Include Directories
2. C/C++ -> General -> Additional Include Directories
不知道具体有什么区别,后在MSDN上得到答案:
“VC++ Directories -> Include Directories” : Directory settings displayed in the window are the directories that Visual Studio will search for include files referred to in your source code files. Corresponds to environment variable INCLUDE. More information
: http://msdn.microsoft.com/en-us/library/t9az1d21(v=vs.80).aspx
“C/C++ -> General -> Additional Include Directories”: The directory to be 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 compiler searches for directories in the following order:
1.Directories containing the source file.
2.Directories specified with the /I option, in the order that CL encounters them.
3.Directories specified in the INCLUDE environment variable.
order2中的/I是由C/C++ -> General -> Additional Include Directories设置的。
order3中的INCLUDE是由VC++ Directories -> Include Directories设置的。
http://blog.csdn.net/cppyin/article/details/6225596
1. VC++ Directories -> Include Directories
2. C/C++ -> General -> Additional Include Directories
不知道具体有什么区别,后在MSDN上得到答案:
“VC++ Directories -> Include Directories” : Directory settings displayed in the window are the directories that Visual Studio will search for include files referred to in your source code files. Corresponds to environment variable INCLUDE. More information
: http://msdn.microsoft.com/en-us/library/t9az1d21(v=vs.80).aspx
“C/C++ -> General -> Additional Include Directories”: The directory to be 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 compiler searches for directories in the following order:
1.Directories containing the source file.
2.Directories specified with the /I option, in the order that CL encounters them.
3.Directories specified in the INCLUDE environment variable.
order2中的/I是由C/C++ -> General -> Additional Include Directories设置的。
order3中的INCLUDE是由VC++ Directories -> Include Directories设置的。
http://blog.csdn.net/cppyin/article/details/6225596
相关文章推荐
- 求一个整数的所有因子
- [MarsZ]Unity3d游戏开发之Unity3d全策划配置新手指引
- Hibernate学习之概述
- uva--232(字符串模拟)
- 样式表的重置
- serializeArray()与serialize()的区别
- 预编译头文件 StdAfx.h
- 虚拟机IP配置总结
- hdu 5316Magician (线段树)
- 安装GCC-4.6.1详细教程
- hdu1232 畅通工程
- 逆向学习XX客户端如何只运行一个实例
- android 字符串string
- return返回值
- 虚拟内存和虚拟地址空间
- 如何判断接受的信息来源于pc还是移动端,以及代码的的不同处理
- Eclipse常用插件 + Eclipse快捷键
- 小贴士 text-indent
- NSSrting的几种常用的用法
- 项目问题处理反馈0806