LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   Lex and YACC on fedora 17 (http://www.linuxquestions.org/questions/programming-9/lex-and-yacc-on-fedora-17-a-4175428972/)

shambhavi 09-25-2012 11:55 AM

Lex and YACC on fedora 17
 
Hi, I am using fedora 17.
When i compiled lex and yacc files with the following command.
Code:

lex filename.l
cc lex.yy.c -ll

I am getting error as
Code:

/usr/bin/ld:cannot find -ll
collect 2:error:ld retuned 1 exit status

How to correct it?

devnull10 09-25-2012 03:43 PM

You are trying to link to a non-existent library: -ll

knudfl 09-26-2012 04:41 AM

-ll means libl.a

yum provides */libl.a
# yum install flex-static

sundialsvcs 09-26-2012 07:44 AM

I believe that it's customary that options should precede filename arguments. The command is quite-possibly interpreting -ll as a filename because a filename preceded it.

If this project is gonna get any bigger (likely ...) stop and learn about make.

shambhavi 10-09-2012 12:07 PM

Thank u knudfl.


All times are GMT -5. The time now is 01:45 PM.