小编use*_*004的帖子

错误:在'not'标记g c ++ builder之前的预期unqualified-id

我在程序中有一个类通知,我在这个项目的其他类中使用它.当我在Visual Studio 2010中运行时它没问题.但是当使用Cygwin构建时发生此错误"错误:预期不合格的ID'不'令牌之前"这个我的类文件.h

#ifndef __TOAST_H__
#define __TOAST_H__

#include "cocos2d.h"
#include "cocos-ext.h"
USING_NS_CC_EXT;
USING_NS_CC;

#define LOADING 1

class notificationTOAST: public CCLayer{
public:
    notificationTOAST(char* bg, char* txt, float y, float duringTime, CCObject* target);
    notificationTOAST(char* bg, char* txt, float y, float duringTime, CCObject* target,char* imgLoading);
    notificationTOAST(char* bg, char* txt, float duringTime, CCObject* target);
    notificationTOAST(char* bg, char* txt, float x, float y, float duringTime, CCObject* target);
    notificationTOAST(char* bg, char* txt,float x, float y, float duringTime, CCObject* target,char* imgLoading);
    void end();
    virtual void loop(float id); …
Run Code Online (Sandbox Code Playgroud)

c++ cygwin

2
推荐指数
1
解决办法
1031
查看次数

标签 统计

c++ ×1

cygwin ×1