Visual Studio在哪里寻找C ++头文件? [英] Where does Visual Studio look for C++ Header files?

查看:228
本文介绍了Visual Studio在哪里寻找C ++头文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从SourceForge(HoboCopy,如果你好奇)检出了一个C ++应用程序的副本,并试图编译它。 Visual Studio告诉我,它找不到一个特定的头文件。我在源代码树中找到了该文件,但是我需要将它放在哪里,以便在编译时找到它?

是否有特殊目录?

I checked out a copy of a C++ application from SourceForge (HoboCopy, if you're curious) and tried to compile it. 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?
Are there special directories?

推荐答案

Visual Studio在此顺序中查找头

Visual Studio looks for headers in this order


  • / li>
  • 在项目属性中的其他包含目录中。 (在C | | General下)

  • 在Visual Studio C ++ Include目录中选项|项目和解决方案| VC ++目录。

在您的情况下,将标题所在的目录添加到项目属性中。

In your case, add the directory that the header is in to the project properties.

这篇关于Visual Studio在哪里寻找C ++头文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆