GCC Option

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2021 Oct 29 5:18
Editor
Edited
Edited
2024 Jun 20 16:8
Refs
Refs

meta

gcc source file name can be placed anywhere except between option and operand

-c

this option means do not link by ld -c makes automatically set file name to source.o do not find main functio ex.

ld

gcc linker

-o

operand: file_name ex.

-I (upper i)

-l option: operand: directory of header file #ex -i.. : .. meands subdirectory ex.

-l (lower L)

operand: directory of library ex.

-I

operand: library name ex.
 
  • --save-temps
 
 
 
 
 
 
 
 

Recommendations