简体   繁体   English

无法在MSVC中包含现有的头文件

[英]Cannot include existing header file in MSVC

I want to include an header file, which I added to my project. 我想包含一个头文件,该文件已添加到我的项目中。 I right-clicked on my project->Add->Existing element. 我右键单击我的项目->添加->现有元素。 But when I want to include that header file, MSVC says that the file could not be found. 但是,当我要包含该头文件时,MSVC表示找不到该文件。 Did I forgot something? 我忘了什么吗?

Problem solved. 问题解决了。 I had to add the header file to the solution folder. 我必须将头文件添加到解决方案文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM