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

来源:百度知道 编辑:UC知道 时间:2024/06/25 07:25:38
其中 CMessg是自己设计的一个类。而另一个类中要使用这个CMessg类,所以,在第二个类的头文件中包含第一个类:#include"CMessg.h".
Compiling...时的问题:C1083: Cannot open include file: 'CMessg.h': No such file or directory。
不知道这是怎么回事。。。请高手回答。。。

头文件:#include"CMessg.h"没有错误,
1、也许是编写错误,看一下,字母写错了没有;
2、CMessg类声明要在这个程序中,不能把另一个程序的CMessg类拿来引用,

路径啊,自己定义的把路径写全了,不然系统知道CMessg.h在哪里呢。