You are not logged in.

#1 2019-04-11 02:47:28

huzo11
Member
Registered: 2018-10-31
Posts: 60

Installing Yacc/Lex on Arch

Hello, 
I have this project in which I should use Yacc/Lex. But when I want to "compile" the lex.yy.c file by doing gcc lex.yy.c -ll, I get an error saying:
/usr/bin/ld: cannot find -ll
collect2: error: ld returned 1 exit status

Is there some extra package that I have to install, or is the problem caused by something else? 

Thanks!


Be nice and live for others.
https://prismatically.blog

Offline

#2 2019-04-11 03:10:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,530
Website

Re: Installing Yacc/Lex on Arch

What is -ll for?  Are you using gnu bison?  If you need to link to the yacc library, you should be using '-ly' not '-ll', or if you need to link to (f)lex, use -lfl.

Last edited by Trilby (2019-04-11 03:15:12)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2019-04-11 03:15:34

huzo11
Member
Registered: 2018-10-31
Posts: 60

Re: Installing Yacc/Lex on Arch

Trilby wrote:

What is -ll for?  Are you using gnu bison?  If you need to link to the yacc library, you should be using '-ly' not '-ll'.

Ah it is solved now, I don't know why a tutorial video on Youtube showed -ll.


Be nice and live for others.
https://prismatically.blog

Offline

#4 2019-04-11 12:12:51

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,522

Re: Installing Yacc/Lex on Arch

Please prepend [SOLVED] to the thread title.

You might also want to add a post-it to your screen :
Youtube videos are not a good substitute for documentation.

Last edited by Lone_Wolf (2019-04-11 12:13:08)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB