# Type "gcc --version" into the terminal. If the command is not found, it is likely that GCC isn't installed. # Go to the directory where your .c program files are located. # To compile a single source file, type: gcc -o outputfile file1.c # To compile multiple files, type: gcc -o outputfile file1.c file2.c file3.c # To compile with more error checking using the -Wall tag: gcc -Wall -o outputfile file1.c # To compile files without linking them type: gcc -c file1.c file2.c file3.c # After the last step, if you want to link them, type: gcc -o outputfile file1.o file2.o file3.o # Fix any errors/warnings the compiler reports. # Recompile the code if you had to fix errors. ----- compile files without linking gcc -c file1.c file2.c file3.c ----- more error checking using the -Wall tag gcc -Wall -o outputfile file1.c ----- compile files with linking gcc -o outputfile file1.o file2.o file3.o