Results 1 to 3 of 3

Thread: Flex and bison installations

  1. #1
    Join Date
    Nov 2007
    Beans
    8

    Flex and bison installations

    Can somebody help me to install flex and bison in ubuntu 7.04??

    I have tried installing, but there is error in lex.yy.c file when i compile my files.

    the lex filename command works properly, but the next command of cc lex.yy.c has numerous weird errors. Accoring to me the program is correct, as its only a few lines.

    Hlep will be appreciated

  2. #2
    Join Date
    May 2006
    Location
    US (MA)
    Beans
    79
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Flex and bison installations

    Hi,

    Could you also show us your lex file and the commands that you use?
    Ubuntu User #12366
    Read my blog for my experiences with Ubuntu

  3. #3
    Join Date
    Feb 2010
    Location
    india
    Beans
    1
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Flex and bison installations

    if lex command is working then it means that you have no problem with installation

    let me give you the proceedure how to compile and run

    1) lex programname.l
    2) cc lex.yy.c -o filename -ll
    3) ./filename
    note in the last step their is a dot

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
  •