directory
The directory to be added to the list of directories searched for include files.
Remarks
To add more than one directory, use this option more than once. Directories are searched only until the specified include file is found.
You can use this option with the Ignore Standard Include Paths (/X (Ignore Standard Include Paths)) option.
The compiler searches for directories in the following order:
Directories containing the source file.
Directories specified with the /I option, in the order that CL encounters them.
Directories specified in the INCLUDE environment variable.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
Click the C/C++ folder.
Click the General property page.
Modify the Additional Include Directories property.
原文:http://msdn.microsoft.com/en-us/library/73f9s62w.aspx
The directory to be added to the list of directories searched for include files.
Remarks
To add more than one directory, use this option more than once. Directories are searched only until the specified include file is found.
You can use this option with the Ignore Standard Include Paths (/X (Ignore Standard Include Paths)) option.
The compiler searches for directories in the following order:
Directories containing the source file.
Directories specified with the /I option, in the order that CL encounters them.
Directories specified in the INCLUDE environment variable.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
Click the C/C++ folder.
Click the General property page.
Modify the Additional Include Directories property.
原文:http://msdn.microsoft.com/en-us/library/73f9s62w.aspx
本文详细介绍了如何在C/C++项目中通过设置额外包含目录来扩展编译器搜索文件的路径,从而提高代码的可维护性和编译效率。包括如何在Visual Studio环境中进行配置,并提供了实际操作步骤。
1万+

被折叠的 条评论
为什么被折叠?



