GCC(GNU Compiler Collection)是由 GNU 开发的编程语言编译器。

Usage

# Compile multiple source files into executable:
gcc {{path/to/source1.c path/to/source2.c ...}} --output {{path/to/output_executable}}

some options

  1. -llibrary : 链接 library 库。

warning options

  1. -Wall : gcc 在编译时遇到错误会停止编译,但是遇到警告仍然能生成可执行文件,打开警告可以使用这个参数。

更详细的用法可以 man gcc