c++ - 在 visual studio 中构建代码时,我遇到错误,.h 文件丢失

标签 c++ visual-studio header

这是我面临的错误:

1>c:\rcs_receiver\rcs_w2k8r2\trunk\rcsreceiver\precomp.h(22) : fatal error C1083: Cannot open include file: 'shared\gendef.h': No such file or directory

而且我尝试在整个源代码中搜索那个 fine,但我无法找到它。请给我您对此的评论。

最佳答案

看起来您正试图包含一个不存在的文件。如果您已经编写了这段代码,并且不需要该文件,只需从给出错误的行 (precomp.h) 中删除第 22 行

如果你没有写过这个,即:如果它是一个程序或者其他一些源文件,尝试删除并重新安装,你可能会丢失一些依赖

关于c++ - 在 visual studio 中构建代码时,我遇到错误,.h 文件丢失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51667836/

相关文章:

c++ - 从 vector 中正确访问对象的属性并将其清除

c++ - 从嵌套结构继承: templates and pointers

python - 将 CNTK virtualenv 添加到 Visual Studio Python 项目

visual-studio - Visual Studio F5 导致连接屏幕?

jquery - 使用 JQuery Mobile 的面板中的页眉

c++ - 如何将 64 位地址的 std::string 表示形式转换为 uint64_t?

c++ - 在 C++ 中确定对象类型

.net - 使用 Visual Studio 2013 进行代码审查

检查 elf 可执行文件是否在 UNIX 上使用 GUI 或 CUI 运行

wordpress - 我的标题 WordPress 之前有奇怪的文字