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
分享到:
相关推荐
- **C/C++ > General > Additional Include Directories** - 添加GSL的`include`目录路径。 - **Linker > General > Additional Library Directories** - 添加GSL的`lib`目录路径。 - **Linker > Input > ...
在VC环境中,可以通过“Project -> Settings -> C/C++ -> Preprocessor -> Additional include directories”选项来添加额外的目录。例如,如果需要经常访问位于`C:\123\`目录下的头文件,可以在这里添加这个路径。 ...
【OpenCV 2.3.4及以上版本在VS2010上配置教程】 OpenCV(Open Source Computer Vision Library)是一款强大的开源计算机视觉库,它包含了大量的图像处理和计算机视觉算法,广泛应用于图像分析、机器学习等领域。本...
- 解决方案是调整 `Additional Include Directories` 的顺序,或者手动修改 `winnt.h` 文件中的定义。 - **错误 C4430**: - 在 VC6 中,默认类型为 int,但在 VS2005 中不再支持默认 int 类型。 - 解决方案是在...
在"Additional Include Directories"和"Additional Library Directories"中,添加Qt库的头文件和库文件路径。 **编程实现**: 1. 主窗口:在`main.cpp`中,创建一个`QApplication`实例,然后实例化一个自定义的主...
在“配置属性”(Configuration Properties)中选择“C/C++”,接着在左侧导航栏中选择“常规”(General),在“附加包含目录”(Additional Include Directories)字段里添加JSONCPP头文件的路径。 接下来,转到...
这些错误可以通过修改project->BaseClasses properties->configuration->C/C++ -> General- >Additional Include Directories里的内容来解决。 三、总结 配置DirectShow开发环境需要下载DirectShow SDK,并对VC...
转到"Configuration Properties" > "Linker" > "General",在"Additional Library Directories"中,添加PCL库文件的路径。这通常是PCL安装路径下的`lib`目录,如:`C:\Program Files\PCL 1.8.1\lib`。 4. 在链接器...
- 在项目属性中选择`Configuration Properties -> C/C++`,在`Additional Include Directories`中添加`C:\Program Files\OpenSceneGraph\include`。 - 选择`Configuration Properties -> Linker`,在`Additional ...
3. 将FreeImage源代码目录中的"include"文件夹添加到项目的包含目录(Project -> Properties -> C/C++ -> General -> Additional Include Directories)。 4. 如果FreeImage压缩包中包含预编译的库文件,将"lib"目录...
- 将修改后的OpenTLD头文件复制到VS安装路径下的`include`目录。 **9. 修复编译警告和错误** - 对于`ceil`和`floor`错误,将它们替换为`std::ceil`和`std::floor`,确保包含`<cmath>`头文件。 - 动态数组分配错误:...
4. 在“附加包含目录”(Additional Include Directories)中,添加Live555源代码的Include目录路径。 5. 确保所有依赖项(如GroupSock、BasicUsageEnvironment等)的路径也被正确地添加。 完成这些设置后,你可以...
- 在“C/C++”选项卡下的“Additional Include Directories”中添加`C:\Program Files\MPICH2\include`。 - 在“Linker”选项卡下的“General”中的“Additional Library Directories”添加`C:\Program Files\...
3. 在"C/C++" -> "General"下,添加"Gorubi安装目录`\win64\include`"到"Additional Include Directories"。 4. 在"Linker" -> "General"下,添加"Gorubi安装目录`\win64\lib`"到"Additional Library Directories"。...
- 对于Win32项目,在`Configuration Properties > C/C++ > General`中,添加`opencv\build\include`到`Additional Include Directories`。 - 在`Configuration Properties > Linker > General`中,添加`opencv\...