Compiling Bison-generated parsers with MS VC++?

Kubat, Karel k.kubat@roccadefinance.nl
Thu Oct 8 15:29:00 GMT 1998


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".



More information about the Cygwin mailing list