GCC is the most common compilation software under Linux, which is often used to compile the C program, but can also be compiled by setting up a plurality of programs written in multiple languages.
The following is briefly introduced to the parameters of the commonly used use of GCC.
-o Select the name of the target file
-l Select the link library you want to use
-c only compiled
For example: Compiling a multi-thread program can use the command:
GCC -LPTHREAD -O Test Test.c
The Test.c file is built, generating executable Test, the purpose of add -lpthread is to connect the program to the PTHREAD library when connecting to support multi-threaded programs. If the program is not used in the program, you can remove this option.