Compiling A C Program
- Lets assume there is a file named http://siber.cankaya.edu.tr/OperatingSystems/cfiles/code1.c code1.c that we want to compile. We will do so using a command line similar to this:
gcc -c code1.c - to compile
gcc -o code1 code1.o - to link. Suppose that you want the resulting program to be called "code1"
gcc -o code1 code1.c - just use this command for combined action of compiling and linking.
Subsections
Cem Ozdogan
2010-02-18