Compilation in C
Use the cc or gcc compiler:
cc prog.c
Produces executable file a.out if no errors
To specify name of executable file, use -o option:
cc -o prog prog.c
Name of executable file becomes ‘prog’.
Previous slide
Next slide
Back to first slide
View graphic version