From dcef3eabba4c412c36ef6b41eab43f13c80c8a84 Mon Sep 17 00:00:00 2001 From: Noah Debaere Date: Sun, 24 May 2020 23:28:33 +0200 Subject: [PATCH] Added the g++ command to the crazy command list --- docs/addendum-10-crazy-command-list/README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/addendum-10-crazy-command-list/README.md b/docs/addendum-10-crazy-command-list/README.md index 03952cc..db8ea8e 100644 --- a/docs/addendum-10-crazy-command-list/README.md +++ b/docs/addendum-10-crazy-command-list/README.md @@ -42,6 +42,7 @@ title: X - Crazy Command List | Command | Description | | --- | --- | -| `ls [OPTIONS] [PATH]` | List information about files | -| **Examples** | `ls -al`, `ls ~`, `ls /boot` | -| **Common Options** | `-l` long listing
`-a` include hidden files
`-h` human readable format | +| `g++ [OPTIONS]` | GNU project for C and C++ compiler | +| **Examples** | `g++ --version`, `g++ example.cpp`, `g++ -o new_name.exe hello.cpp` | +| **Common Options** | `-S` no assembling nor linking but creating source file
`-c` only compile and assemble and not link to generate object code
`-o` Compiles and links, then creates executable target file with name provided by user | +|**Remarks** | This command compiles and links example.cpp to produce a default target executable file a.out in the working directory. To run the program just type ./a.out in the command line! |