问题描述
我使用Windows 10,正在尝试使用Make文件编译下载的项目.我输入:
I use windows 10 and am trying to compile a downloaded project using a make file. I enter:
`nmake -f Makefile'
在适当的目录中并得到错误:
in the appropriate directory and get error:
'cc -03 -o lsd lsd_cmd.c -lm
'cc' is not recognized as an internal or external comand, operable program or batch file.
NMAKE : fatal error U1077: 'cc' : return code 'ox1'
Stop.
我不知道我在做什么错,我想可能是因为它找不到C编译器?
I don't know what I'm doing wrong, I think maybe it is because it cant find a c compiler?
感谢您的帮助:)
推荐答案
错误消息确切说明了问题所在.
The error message says exactly what the problem is.
'cc' is not recognized as an internal or external comand, operable program or batch file.
cc将是编译器,而Windows无法找到它.你要么
cc would be a compiler, and Windows cannot find it. You either
a)没有C编译器
b)cc并不指向您的C编译器
b) cc does not point to your C compiler
如果是(a),请下载C编译器. MinGW或Cygwin应该可以工作.如果是(b),则可以尝试将makefile从'cc'更改为C编译器的名称(例如gcc),将C编译器添加到系统路径,和/或创建符号链接以将'cc'指向您的C编译器.
If (a), download a C compiler. MinGW or Cygwin should work. If (b), you can try changing the makefile from 'cc' to whatever your C compiler's name is (gcc, for example), adding the C compiler to the system path, and/or creating a symlink to point 'cc' to your C compiler.
这篇关于NMAKE:致命错误U1077:"cc":返回码"0x1"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!