From c5ecad85fcdb99446bd831c2fb8086ffb05fd471 Mon Sep 17 00:00:00 2001 From: ImmortalPC Date: Mon, 25 Nov 2013 20:20:12 +0100 Subject: [PATCH] [Change] GCC Add some samples --- cheatsheets/gcc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cheatsheets/gcc b/cheatsheets/gcc index fa8b245..28a78c0 100644 --- a/cheatsheets/gcc +++ b/cheatsheets/gcc @@ -6,3 +6,16 @@ gcc -o file file.c # Debug symbols gcc -g + +# Debug with all symbols. +gcc -ggdb3 + +# Build for 64 bytes +gcc -m64 + +# Include the directory {/usr/include/myPersonnal/lib/} to the list of path for #include <....> +# With this option, no warning / error will be reported for the files in {/usr/include/myPersonnal/lib/} +gcc -isystem /usr/include/myPersonnal/lib/ + +# Build a GUI for windows (Mingw) (Will disable the term/console) +gcc -mwindows