常见编译问题

来源:互联网 发布:python双引号转义字符 编辑:程序博客网 时间:2024/05/21 19:40

编程工程文件时,为什么会提示“ make (e=2): The system cannot find the file specified ”或者是“ 'arm-none-eabi-gcc' 不是内部或外部命令,也不是可运行的程序或批处理文件”?

通常这表明,操作系统在你指定的路径中,找不到makefile中需要使用的命令。如果发生类似下面的错误,应该是找不到gcc命令所致:

gcc -c hello.c

Process begin: CreateProcess((null), gcc -c hello.c, ...) failed.

make (e=2): The system cannot find the file specified.

你应该修改PATH环境变量,确保包含gcc命令所在的目录。

原创粉丝点击