LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 09-25-2012, 11:55 AM   #1
shambhavi
LQ Newbie
 
Registered: Sep 2012
Location: india
Posts: 11

Rep: Reputation: Disabled
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?
 
Old 09-25-2012, 03:43 PM   #2
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Rep: Reputation: 115Reputation: 115
You are trying to link to a non-existent library: -ll
 
Old 09-26-2012, 04:41 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2013.07, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,222

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381
-ll means libl.a

yum provides */libl.a
# yum install flex-static
 
1 members found this post helpful.
Old 09-26-2012, 07:44 AM   #4
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,063

Rep: Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974Reputation: 974
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.

Last edited by sundialsvcs; 09-26-2012 at 07:45 AM.
 
1 members found this post helpful.
Old 10-09-2012, 12:07 PM   #5
shambhavi
LQ Newbie
 
Registered: Sep 2012
Location: india
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thank u knudfl.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] lex and yacc rit Programming 9 08-22-2012 09:11 AM
lex and yacc aarsh Linux - Software 3 01-03-2011 08:58 AM
LEX and YACC with C gr33ndata Programming 4 11-18-2007 05:12 PM
lex and yacc tools ? vagrahb Programming 4 05-19-2006 01:38 PM
usage of lex and yacc in fedora core 4 rameshsena Linux - Software 2 09-02-2005 03:53 AM


All times are GMT -5. The time now is 07:28 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration