我之前得到一个“预期的类名,或和我不完全得到如何解决它'''或';'之前的预期类名。
这里就是错误是:
class FXHost : public CPLAT::CP_Application, public CPLAT::CP_M_Listener
{
该文件是FXHost.h和CPLAT ::显然是CP_Application和CP_M_Listener所在的命名空间
我不明白为什么会出现这种情况,这段代码在Metrowerks中运行正常(没有CPLAT::),但是在XCode中需要CPLAT,因为写的代码由之前的开发者。
任何人都可以解释一下这个错误吗?
更新:这里是CP_Application类
template <class DOC_POLICY, class PRINT_POLICY, class UNDO_POLICY>
class CP_EXPORT CP_Application : public CP_Application_Imp
{
public:
typedef DOC_POLICY DocPolicyType;
typedef PRINT_POLICY PrintPolicyType;
typedef UNDO_POLICY UndoPolicyType;
CP_Application();
virtual ~CP_Application() throw();
听起来像一个的#include缺少一个声明CPLAT ::类。 – 2010-06-09 14:15:01