作者热门文章
- mongodb - 在 MongoDB mapreduce 中,如何展平值对象?
- javascript - 对象传播与 Object.assign
- html - 输入类型 ="submit"Vs 按钮标签它们可以互换吗?
- sql - 使用 MongoDB 而不是 MS SQL Server 的优缺点
我正在使用 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/
我是一名优秀的程序员,十分优秀!