博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
VC2010中"Include Directories" 和 "Additional Include Directories"的区别
阅读量:5124 次
发布时间:2019-06-13

本文共 1028 字,大约阅读时间需要 3 分钟。

右键一个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 : 

 

“C/C++ -> General -> Additional Include Directories”: The directory to be added to the list of directories searched for include files. More information : 

 

下面那个链接讲的比较清楚了:

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设置的。

转载于:https://www.cnblogs.com/songtzu/archive/2013/01/10/2855121.html

你可能感兴趣的文章
C# ITextSharp pdf 自动打印
查看>>
【Java】synchronized与lock的区别
查看>>
django高级应用(分页功能)
查看>>
【转】Linux之printf命令
查看>>
关于PHP会话:session和cookie
查看>>
STM32F10x_RTC秒中断
查看>>
display:none和visiblity:hidden区别
查看>>
C#double转化成字符串 保留小数位数, 不以科学计数法的形式出现。
查看>>
牛的障碍Cow Steeplechase
查看>>
Zookeeper选举算法原理
查看>>
3月29日AM
查看>>
利用IP地址查询接口来查询IP归属地
查看>>
HTML元素定义 ID,Class,Style的优先级
查看>>
构造者模式
查看>>
http和https的区别
查看>>
Hbuild在线云ios打包失败,提示BuildConfigure Failed 31013 App Store 图标 未找到 解决方法...
查看>>
找到树中指定id的所有父节点
查看>>
今天新开通了博客
查看>>
AS3优化性能笔记二
查看>>
ElasticSearch(站内搜索)
查看>>