|yacc is generating a y.tab.c without yylex prototype email@example.com (2005-07-02)|
|Date:||2 Jul 2005 20:19:33 -0400|
I have a yacc question and hope this is an appropriate newsgroup.
If not I'd appreciate any pointers to a better place to post it.
I am using yacc on a Linux system and to my surprise, the y.tab.c it
outputs does not contain a prototype for yylex, i.e.
This causes y.tab.c to fail compilation. The same yacc input file
produces proper output on a Solaris system. Is there some switch needed
on the Linux to force the yylex prototype? Maybe some header file needs
to be included?
Thanks for any suggestions.
[Different version. Just put the right prototype in an include file.
So long as it's the same as the one that later versions of yacc might
generate, it won't break anything even if the prototype is there. -John]
Return to the
Search the comp.compilers archives again.