From 17b6ad99435a5e287ee2c886557e77644bd5174b Mon Sep 17 00:00:00 2001 From: jxu <7989982+jxu@users.noreply.github.com> Date: Tue, 23 Aug 2022 12:02:42 -0400 Subject: [PATCH] gcc: use short -o option for output (#8387) --- pages/common/gcc.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/gcc.md b/pages/common/gcc.md index 47335af879..607513b348 100644 --- a/pages/common/gcc.md +++ b/pages/common/gcc.md @@ -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: