Click to See Complete Forum and Search --> : Compiling Flex & Yacc generated C files using gcc compiler


prajeesh_77
September 29th, 2003, 03:05 AM
Hi,
I had written a simple calculator specification file for Flex & Yacc and I've generated the following files (lex.yy.c,y.tab.c & y.tab.h). But when I try compiling lex.yy.c file with gcc I get a lot of errors and warnings. I'm running these files in Windows NT environment. Do I need to have any additional libraries to generate a executable for lex.yy.c ? And does gnu support the following file format lex.yy.c. Expecting u'r valuable comments.

Thanks & Regards,
Prajeesh

khp
September 30th, 2003, 07:02 PM
I'am not sure about WinNT.
But with gcc on unix you would normally use -lfl to include the flex libs.