C
Christoph Kukulies
Compilation (make, yacc, lex) of little parser used to work fine under
BSD (FreeBSD) and now that I want to build it under cygwin, I suddenly
get
gcc -c y.tab.c
y.y: In function `yyparse':
y.y:17: error: `lfd' undeclared (first use in this function)
y.y:17: error: (Each undeclared identifier is reported only once
lfd is a static variable which is defined at the end of the .y file,
instead at the beginning. That is, the yyparse main program is appended
at the end instead at the beginning of the generated y.tab.c.
Strange. How can I influence this?
BSD (FreeBSD) and now that I want to build it under cygwin, I suddenly
get
gcc -c y.tab.c
y.y: In function `yyparse':
y.y:17: error: `lfd' undeclared (first use in this function)
y.y:17: error: (Each undeclared identifier is reported only once
lfd is a static variable which is defined at the end of the .y file,
instead at the beginning. That is, the yyparse main program is appended
at the end instead at the beginning of the generated y.tab.c.
Strange. How can I influence this?