This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Compiling Bison-generated parsers with MS VC++?


Chris,

> error messages:
> /cygnus/b19/share/bison.simple(327) : error C2065: 'yyerror' 
> : undeclared
> identifier
> /cygnus/b19/share/bison.simple(333) : error C2065: 'alloca' : 
> undeclared
> identifier
> /cygnus/b19/share/bison.simple(387) : error C2065: 'yylex' : 
> undeclared
> identifier

You need to declare your own yyerror() routine, if memory serves me, it
returns an int and requires an int as argument. Same goes for yylex() --
that comes from your flex-generated file. 

alloca() is often a problem, I've seen sources of that but I dunno where
anymore...

Cheers, K
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]