| Christoph Kukulies 2006-06-26, 7:34 am |
| Compilation (make, yacc, lex) of a 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? I manually reordered so that the
declarations appear before the parser but this can't be it, can it?
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
|