gpt4 book ai didi

c++ - fatal error C1083 : Cannot open include file: 'xyz.h' : No such file or directory?

转载 作者:IT老高 更新时间:2023-10-28 21:55:30 24 4
gpt4 key购买 nike

我正在使用 Visual Studio 2005 创建一个项目。我在项目中的文件夹结构为:一个名为代码的文件夹。此文件夹包含所有 *.cxx 文件。

现在,我在头文件 xyz.h 中创建了一个类 xyz。并在代码文件夹中定义了 xyz.cxx 中的所有内容。但是现在当我尝试用 Visual Studio 编译它时,它会抛出一个错误“ fatal error C1083:无法打开包含文件:'xyz.h':没有这样的文件或目录”。如何纠正这个问题。

最佳答案

将“代码”文件夹添加到 Visual Studio 中的项目属性中

项目->属性->配置属性->C/C++->附加包含目录

关于c++ - fatal error C1083 : Cannot open include file: 'xyz.h' : No such file or directory?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7789969/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com