Flex

Solved
victoria ghabri Posted messages 114 Status Member -  
victoria ghabri Posted messages 114 Status Member -
Hello,

I need to work with flex using the command prompt (Windows 7), but here's what it shows me

C:\Users\dell>C:\Program Files (x86)\GnuWin32\bin
'flex' is not recognized as an internal or external command, an executable program or a batch file.

Is there a program or file that I need to install for it to recognize it????
A response please, it's urgent :////

2 answers

  1. ijlal
     
    Good evening
    First, you need to install flex, include the path of the gcc compiler and the one for flex in the environment variables:
    Start->Control Panel->System->Advanced system settings->Environment Variables (at the bottom right)->System variables->Path
    For me, the two paths are:
    C:\Dev-Cpp\bin for gcc
    C:\Program Files\GnuWin32\bin for flex
    (Be careful not to delete the paths already present in the Path variable, and to add ";" at the end of each path).
    Then, you should copy the library:
    C:\Program Files\GnuWin32\lib\libfl.a into your IDE's library (I use DEV C++, so the path on my machine is: C:\Dev-Cpp\lib

    and there you go, your flex is up and running.
    1
  2. victoria ghabri Posted messages 114 Status Member 5
     
    Thank you very much for your help :) .
    0