make

You should create a Makefile and use make to compile your code. information about how make works can be obtained from a number of sources, including:

To help you out, there is a sample Makefile you can copy and modify. The Makefile includes the following lines:

If you intend to use cc as the compiler, then you must change the above Makefile lines to: