Author Topic: unable to compile getting error "/usr/bin/ld: cannot find -ll"  (Read 1891 times)

0 Members and 1 Guest are viewing this topic.

Offline erg

  • Neuling
  • *
  • Posts: 41
  • I'm new. Be nice!
  • Branch: Unstable
  • Desktop: Plasma
  • GPU Card: ati radeon hd 7640g + 7670m
  • GPU driver: catalyst
  • Kernel: linux44
  • Skill: Novice
unable to use "gcc lex.yy.c -ll "
flex package is installled still getting the error "/usr/bin/ld: cannot find -ll"
Manjaro+Bqqlinux+Blackarch= "Darkjaro"
Pentesting based Manjaro

Offline Esclapion

  • Support Team
  • ****
  • Posts: 5523
    • manjaro
  • Branch: stable
  • Desktop: Lxqt
  • GPU Card: GTX 970
  • GPU driver: nonfree
  • Kernel: 4.4.6
  • Skill: Advanced
Re: unable to compile getting error "/usr/bin/ld: cannot find -ll"
« Reply #1 on: 02. March 2016, 13:00:54 »
lex is proprietary (AT&T), use better flex instead. flex needs no library or -lfl.

-ll only provides a dummy version of main an yywrap.

flex is a link on lex, generally.
Venez nous rejoindre sur l'IRC francophone
Patrice - Violence is the last refuge of the incompetent (Asimov)

Offline erg

  • Neuling
  • *
  • Posts: 41
  • I'm new. Be nice!
  • Branch: Unstable
  • Desktop: Plasma
  • GPU Card: ati radeon hd 7640g + 7670m
  • GPU driver: catalyst
  • Kernel: linux44
  • Skill: Novice
Re: unable to compile getting error "/usr/bin/ld: cannot find -ll"
« Reply #2 on: 03. March 2016, 08:08:41 »
lex is proprietary (AT&T), use better flex instead. flex needs no library or -lfl.

-ll only provides a dummy version of main an yywrap.

flex is a link on lex, generally.

 iam trying to compile but ends getting error
iam having Red Hat 5 in my univerisity gcc lex.yy.c -ll works without any isses
please can u guide me to compile my project
Thanks!!  :)
Manjaro+Bqqlinux+Blackarch= "Darkjaro"
Pentesting based Manjaro

Offline leledumbo

  • Sr. Mitglied
  • ****
  • Posts: 371
    • Pascal Warrior's Journey
  • Branch: stable
  • Desktop: KDE
  • GPU Card: Intel HD 4400 + nVidia GeForce GT 740M (HP notebook), Intel HD 5500 + nVidia GeForce GT 940M (ASUS notebook), nVidia GeForce GT 220 (desktop)
  • GPU driver: non-free
  • Kernel: linux-latest-x64 and linux-latest LTS-x64
  • Skill: Intermediate
Re: unable to compile getting error "/usr/bin/ld: cannot find -ll"
« Reply #3 on: 03. March 2016, 08:51:34 »
flex package is installled still getting the error "/usr/bin/ld: cannot find -ll"
flex doesn't provide libl, it has its own libfl, which you should link to instead of the former. Flex is not lex even though it's somewhat compatible.
Manjaro Net edition 64-bit + Self installed KDE
Kernel latest supported + latest LTS
HP Pavilion 14-n038tx
Asus A455LB-WX034D
Self built desktop

Offline erg

  • Neuling
  • *
  • Posts: 41
  • I'm new. Be nice!
  • Branch: Unstable
  • Desktop: Plasma
  • GPU Card: ati radeon hd 7640g + 7670m
  • GPU driver: catalyst
  • Kernel: linux44
  • Skill: Novice
Re: unable to compile getting error "/usr/bin/ld: cannot find -ll"
« Reply #4 on: 03. March 2016, 19:20:23 »
flex doesn't provide libl, it has its own libfl, which you should link to instead of the former. Flex is not lex even though it's somewhat compatible.
Iam sorry I am really a noob recently started programming on my system can u please guide me to link those files.Thanks!!
Manjaro+Bqqlinux+Blackarch= "Darkjaro"
Pentesting based Manjaro

Offline erg

  • Neuling
  • *
  • Posts: 41
  • I'm new. Be nice!
  • Branch: Unstable
  • Desktop: Plasma
  • GPU Card: ati radeon hd 7640g + 7670m
  • GPU driver: catalyst
  • Kernel: linux44
  • Skill: Novice
can some one help me compile this code of Reg Exp. getting error
« Reply #5 on: 07. March 2016, 19:25:14 »
hello guys
please help me compile this code.
giving me error -ll not found
iam having flex package do i have to link any file to compile my code?
If yes please help me linking the files.
Thank you
Manjaro+Bqqlinux+Blackarch= "Darkjaro"
Pentesting based Manjaro

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: can some one help me compile this code of Reg Exp. getting error
« Reply #6 on: 07. March 2016, 20:26:51 »
Try `gcc -ll lex.yy.c`

Also read `man gcc`
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline erg

  • Neuling
  • *
  • Posts: 41
  • I'm new. Be nice!
  • Branch: Unstable
  • Desktop: Plasma
  • GPU Card: ati radeon hd 7640g + 7670m
  • GPU driver: catalyst
  • Kernel: linux44
  • Skill: Novice
Re: can some one help me compile this code of Reg Exp. getting error
« Reply #7 on: 09. March 2016, 16:26:45 »
Try `gcc -ll lex.yy.c`

Also read `man gcc`
no still the same error :( :'(
Manjaro+Bqqlinux+Blackarch= "Darkjaro"
Pentesting based Manjaro

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: can some one help me compile this code of Reg Exp. getting error
« Reply #8 on: 09. March 2016, 16:43:51 »
I just spotted that you've already started a thread for this. Merging.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.

Offline jonathon

  • Core Team
  • *****
  • Posts: 2104
  • Technologist - Teacher - Tea drinker
  • Branch: Unstable
  • Desktop: MATE 1.14
  • GPU Card: Nvidia GTX680M
  • GPU driver: Bumblebee nvidia+intel
  • Kernel: 4.6.0-*-MANJARO x86_64
  • Skill: Advanced
Re: unable to compile getting error "/usr/bin/ld: cannot find -ll"
« Reply #9 on: 09. March 2016, 16:46:31 »
iam having Red Hat 5 in my univerisity gcc lex.yy.c -ll works without any isses

Your University will have servers that are available remotely. You could use them.

Quote
please can u guide me to compile my project

You could ask your teacher/lecturer and/or IT support staff for help with this. They already have all of the information and have probably seen the exact same issue before. This isn't anything specifically to do with Manjaro.
--
MSI GT70: Core i7-3630QM, 16GB, Nvidia GTX680M, Intel 2230, Manjaro-MATE-amd64-EFI
Lenovo X230: Core i5-3320M, 4GB, Intel HD4000, Intel 6205, Manjaro-MATE-amd64
Dell Studio 1749: Core i5 540, 8GB, ATi HD5650, Intel WLAN, Manjaro-Xfce-amd64
Let's go in the garden; you'll find something waiting.