1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-15 19:15:44 +02:00

gcc: use short -o option for output (#8387)

This commit is contained in:
jxu 2022-08-23 12:02:42 -04:00 committed by GitHub
parent cecf8f2150
commit 17b6ad9943
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: