whenever i type clang hello.c it tells me that there is an undefined reference to main and i dont know how to solve this. please see the image to see my code and the error.
1 Answer
try make hello
instead of the clang command.
There are a series of compiler flags required with clang. The make command will handle it for you.