Most examples are standalone code and can be compiled using:
gcc file.c
By default, gcc
generates the output file a.out
. Run a.out
to run the program you just compiled:
./a.out
Occasionally, examples extend multiple files and a Makefile
will be provided.