Next: Makea Program Up: Compiling the Program Previous: Compiling the Program

The C Compiler (cc)

The simplest method is to type


cc testprog.c

This will try to compile testprog.c, and, if successful, will produce a runnable file called a.out. If you want to give the runnable file a better name you can type


cc testprog.c -o testprog

This will compile testprog.c, creating runnable file testprog.


craa27@strath.ac.uk
Tue Jan 17 11:40:37 GMT 1995