我从 SourceForge(HoboCopy,如果你好奇的话)查看了一份 C++ 应用程序的副本并尝试编译它.
I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it.
Visual Studio 告诉我它找不到特定的头文件.我在源码树中找到了这个文件,但是我需要把它放在哪里,以便编译时找到它?
Visual Studio tells me that it can't find a particular header file. I found the file in the source tree, but where do I need to put it, so that it will be found when compiling?
是否有特殊目录?
Visual Studio 按以下顺序查找标题:
Visual Studio looks for headers in this order:
在您的情况下,将标题所在的目录添加到项目属性(Project Properties → Configuration → C/C++ → General → 其他包含目录).
In your case, add the directory that the header is to the project properties (Project Properties → Configuration → C/C++ → General → Additional Include Directories).
这篇关于Visual Studio 在哪里查找 C++ 头文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!