I have installed make
compiler for C, but it doesn't work. I have MinGW installed and installed mingw32-make and choco make, but neither of them works. They both output the same error when I try to compile a hello world C program called hello.c
:
#include <stdio.h>
int main(void)
{
printf("Hello, world!");
return 0;
}
Then, I type into the terminal make hello
or mingw32-make hello
, and this is outputted:
cc hello.c -o hello
process_begin: CreateProcess(NULL, cc hello.c -o hello, ...) failed.
make (e=2): El sistema no puede encontrar el archivo especificado. (System couldn't find the specified file)
make: *** [<builtin>: hello] Error 2
If I instead put make hello.c
or mingw32-make hello.c
, this is outputted:
make/mingw32-make: Nothing to be done for 'hello.c'.
However, using gcc
command does work, so I don't know what to do. If anyone knows what to do, pls help. Thanks!