Unix Programming - yacc under cygwin - undefined symbols

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2006 > yacc under cygwin - undefined symbols





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author yacc under cygwin - undefined symbols
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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com