[英]./a.out is not recognized in window for executing lex
我在Windows 10上使用DevCpp和flex。要執行我的lex程序,我嘗試使用./a.out,但出現以下錯誤。
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,
可操作的程序或批處理文件。
這可能是問題所在,請我為此提供幫助。
它創建一個文件名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
這就是我們可以在Windows中執行lex的方式
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.