You are not logged in.
Pages: 1
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
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
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
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
Pages: 1