Im using DevCpp and flex on windows 10. To execute my lex program i have tried with ./a.out but i got the following error.
C:\Users\Admin\Desktop>flex id1.l
C:\Users\Admin\Desktop>gcc lex.yy.c
C:\Users\Admin\Desktop>./a.out
'.' is not recognized as an internal or external command,
operable program or batch file.
What might be the problem here and please me help me in this.
It creates a file name a.exe
C:\Users\Admin\Desktop>flex id1.l
C:\Users\Admin\Desktop>gcc lex.yy.c
C:\Users\Admin\Desktop>a
asd ase 12 4rf
12 4
this is how we can execute lex in windows
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.