Results 1 to 2 of 2

Thread: Gcc error

  1. #1
    Join Date
    Nov 2018
    Beans
    1

    Gcc error

    Hi , i tried to compile lex.yy.c file using the command gcc lex.yy.c -ll
    i keep getting error
    /usr/bin/ld :cannot find -ll

    i have flex installed 2.6.4 version
    i also have bison installed
    i also installed build-essential
    i tried to change the file ld with another that works on my friend PC
    but still the same !
    can anyone help please !
    ?

  2. #2
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,588
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: Gcc error

    Quote Originally Posted by thecoderouss View Post
    Hi , i tried to compile lex.yy.c file using the command gcc lex.yy.c -ll
    i keep getting error
    /usr/bin/ld :cannot find -ll
    This means that it cannot find the libl library.
    i have flex installed 2.6.4 version
    i also have bison installed
    i also installed build-essential
    libl.a is provided by the libfl-dev package. You need to install that. It is recommended by the flex package.
    i tried to change the file ld with another that works on my friend PC
    That is very unwise and could lead to all sorts of problems unless your friend is running precisely the same version of precisely the same operating system.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •