无法解析 A'

A' could not be resolved

本文关键字:      更新时间:2023-10-16

我有这个问题 符号"A"无法在文件 B.h 中解析,我正在使用 Eclipse IDE for C/C++ 开发人员:

//B.h file
#ifndef __B_H__
#define __B_H__
#include "A.h"

class B:  public cs::A{
};
#endif

包括 A.h 文件:

//A.h file
#ifndef A_H_
#define A_H_
namespace cs{
class A {

};
}
#endif

我在这里错过了什么?

代码没有问题。很可能您的包含路径不正确。

#pragma message ("Parsing A.h")
相关文章:
  • 没有找到相关文章