Skip to content

C Learning Notes

1. Specify the C standard with GCC

gcc -std=c99 filename.c

c99, c1x, and c11 are examples of available standards.

2. Specify the output file with GCC

gcc -o output_file filename.c

3. Include a header search path with GCC

gcc filename.c -I/usr/local/include
gcc filename.c -lssl

REF

[1]. gcc-g++参数

[2]. Makefile-初探

[3]. Qmake-Pro