This repository is for practicing GCC.
gcc single.c
Will generate a.out
file. a.out
is the default name of output file. To run the file, type:
./a.out
Explore files
file a.out
gcc -c extern.c
gcc -c main.c
gcc -o main main.o extern.o
Will generate main
file. To run the file, type:
./main
-o option is used to specify the output file name.