Reputation: 15
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.
I don't know what I'm doing wrong, I think maybe it is because it cant find a c compiler?
Thanks for any help :)
Upvotes: 1
Views: 6032
Reputation: 3915
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 would be a compiler, and Windows cannot find it. You either
a) Don't have a C compiler
b) cc does not point to your C compiler
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.
Upvotes: 2