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.

this is the error and my code


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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .