fatal error C1083: Cannot open include file: '..\XX.h': No such file or directory

来源:互联网 发布:c语言中函数中参数 编辑:程序博客网 时间:2024/05/25 01:35

针对于这个问题有多种可能性:

1、.h文件为系统自带的头文件,可以查找工程或是工具中的选项进行配置,看是否包含了需要的头文件,如iostream,cmath,stdio等等

2、.h文件为个人写的头文件。该情况分为几种:

1)要引用的头文件与引用文件在同一文件夹下直接#include“xx.h”

2)不在同一文件夹下:#include“..\xx\xx.h”                       #include".\xx\xx.h"                    #include"..\xx.h"                      #include".\xx.h"            #include"\xx.h"

0 0
原创粉丝点击