'make file_name - returns: CreateProcess(NULL, cc hello.c -o hello, ...) failed. make (e=2): The system cannot find the file specified. ERROR
I am new to c language and I am trying to compile my first program, following a tutorial.
My file hello.c :
#include <stdio.h>
int main(void)
{
printf("hello, world\n");
}
I use "make hello" command to compile it but I get the error:
cc hello.c -o hello
process_begin: CreateProcess(NULL, cc hello.c -o hello, ...) failed.
make (e=2): The system cannot find the file specified.
<builtin>: recipe for target 'hello' failed
make: *** [hello] Error 2
I have MinGW installed and I have it in my environment variables PATH. I am trying it on Windows 8.
Please any help I would very appreciate. Maybe there is another way to compile a c files?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
