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

gcc: add -g to -Wall -Og example (#9088)

This commit is contained in:
osalbahr 2022-11-09 05:05:39 -05:00 committed by GitHub
parent ea0a5167c7
commit 8cd6567f44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,9 @@
`gcc {{path/to/source1.c path/to/source2.c ...}} -o {{path/to/output_executable}}`
- Show common warnings, debug symbols in output:
- Show common warnings, debug symbols in output, and optimize without affecting debugging:
`gcc {{path/to/source.c}} -Wall -Og -o {{path/to/output_executable}}`
`gcc {{path/to/source.c}} -Wall -g -Og -o {{path/to/output_executable}}`
- Include libraries from a different path: