當我編譯C文件,上面說的代碼有問題:具有彎曲(在C部分)
pcat.lex:12: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘hasTab’.
這裏的文件的開頭:
#include "ctype.h"
#include "stdio.h"
#include "stdlib.h"
#include "pcat.tab.h"
#define YY_USER_ACTION Do_Before_Each_Action();
#define STRING_MAX_LENGTH 255
#define IDENTIFIER_MAX_LENGTH 255
#define MAX_INT 2147483647
static int lineno = 1;
static int colno = 1;
static bool hasTab;
void Do_Before_Each_Action();
有誰知道是什麼發生?
我正在使用Mac OS X 10.6.7