mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-16 01:35:43 +02:00
gcc: use short -o option for output (#8387)
This commit is contained in:
parent
cecf8f2150
commit
17b6ad9943
1 changed files with 3 additions and 3 deletions
|
@ -5,15 +5,15 @@
|
|||
|
||||
- Compile multiple source files into executable:
|
||||
|
||||
`gcc {{path/to/source1.c path/to/source2.c ...}} --output {{path/to/output_executable}}`
|
||||
`gcc {{path/to/source1.c path/to/source2.c ...}} -o {{path/to/output_executable}}`
|
||||
|
||||
- Allow warnings, debug symbols in output:
|
||||
|
||||
`gcc {{path/to/source.c}} -Wall -Og --output {{path/to/output_executable}}`
|
||||
`gcc {{path/to/source.c}} -Wall -Og -o {{path/to/output_executable}}`
|
||||
|
||||
- Include libraries from a different path:
|
||||
|
||||
`gcc {{path/to/source.c}} --output {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
`gcc {{path/to/source.c}} -o {{path/to/output_executable}} -I{{path/to/header}} -L{{path/to/library}} -l{{library_name}}`
|
||||
|
||||
- Compile source code into Assembler instructions:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue