错误 C1083 无法打开包含文件:'IexBaseExc.h': 没有那个文件或目录

Error C1083 Cannot open include file: 'IexBaseExc.h': No such file or directory

所以我已将此路径添加到 C/C++ 常规部分中的包含文件,但我仍然收到此错误。 Windows 10 中 Visual Studio 2015 的修复是什么?

Severity    Code    Description Project File    Line    Suppression State
Error   C1083   Cannot open include file: 'IexBaseExc.h': No such file or directory (compiling source file replay\replay_renderer.cpp)  renderdoc   c:\users\mona\playing-for-data\renderdoc\renderdocrdparty\openexr\openexr\ilmimf\ImfHeader.h  55  

我已经清理了项目并重新构建了它!

Aditional Include Directories 可以根据 ConfigurationPlatform 指定。在您的屏幕截图中,您为 Profile 配置和 Win32 平台设置了包含目录。

检查是否为您正在构建的配置和平台设置了正确的包含目录值。可以在 Configuration Manager.

中找到活动配置

通过搜索路径检查您的 .Vcxproj 文件。如果您添加的内容包含在内。有时 Visual studio 不会那样做。

现在我用两种方法解决了。

首先,我手动将包含路径添加到.vcxproj 问题是您至少需要一个包含路径已经在 .Vcxproj 中,否则它可能会破坏未完成的项目设置。

其次,不知道为什么会这样。而不是为特定平台和配置设置包含。选择所有配置和所有平台。然后添加你的路径。这对我很有用。仍然有效。

看看是否有帮助。