Guideline to debug the error in lex and yacc prgm
I using the fedora 16 and i installed the lex and yacc packages along with gcc compiler but i copiled an prgm i getting the error as mentioned below
[mantu@localhost lex_yacc]$ lex one.l
[mantu@localhost lex_yacc]$ cc lex.yy.c -ll
/usr/bin/ld: cannot find -ll
collect2: ld returned 1 exit status
What library are you trying to link against using
-ll
? If you're referring a book, please re-read the commands and replicate them exactly. I'd recommend using Fedora 18 or 19. Thelex
andyacc
etc. commands should be the same.You can install the missing library on Fedora 16 with::
Starting from Fedora 18 the package is called flex-devel. Fedora ships only a static version::