I was trying to compile my first C program after watching the video lecture. I'M using local vscode to compile the hello.c
but getting errors. Bellow are the error messages.
After typing the command make hello
it returned these:
make: cc: No such file or directory
make: *** [<builtin>: hello] Error 127
2. After typing ```./hello.c``` it returns:
./hello.c: line 2: $'\r': command not found
./hello.c: line 3: syntax error near unexpected token `('
'/hello.c: line 3: `int main(void){'
Please need help on how to fix this. Thanks
[![Error messages received during compilation][1]][1]
.
https://i.sstatic.net/0gktK.png