next up previous
Next: Debugging Up: Creating C-Programs Previous: Writing Source Code

Compiling and Running your Programs

Compilation is very different on different compilers. Graphical environments (like Visual C$^{++}$ or Borland C$^{++}$-Builder) normally provide sufficient online help and interactive customization so they will not be covered in this document. For command-line compilers, we recommend using makefiles. For most homework assignments, a makefile for the CCC machines will be provided. In order to generate your program from the source code and include libraries, simply copy the makefile into your working directory and type make. make clean normally cleans up all generated files which is useful once you have finished a project. Linking is done automatically with most current compilers, so we will not elaborate on that.

Andreas Koeller
2000-06-04