【发布时间】:2018-07-06 16:40:51
【问题描述】:
我在 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,
可运行的程序或批处理文件。
这可能是什么问题,请帮我解决这个问题。
【问题讨论】:
-
至少windows上的
/需要是一个`\`。 -
好的...再次。您的桌面上是否存在此
a可执行文件? -
不,/ 是 Windows 上完全有效的路径组件分隔符,从 DOS 3 左右开始。
-
@R.. .. 好吧,如果引用的话,比如
dir "./"。