aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/gcc
diff options
context:
space:
mode:
authorNeodarZ <neodarz@neodarz.net>2018-01-24 01:54:45 +0100
committerNeodarZ <neodarz@neodarz.net>2018-01-24 01:54:45 +0100
commitc1b32a4b97daa7e592c87e04e775b00ab33c8ae2 (patch)
tree0a7604c503569b8ffc0695ec1739fb80b0c71e3f /cheat/.cheat/gcc
parent59d0e0a9591e3dc50f15c47a71fdf97117d1ff7a (diff)
downloaddotfiles_ascii-c1b32a4b97daa7e592c87e04e775b00ab33c8ae2.tar.xz
dotfiles_ascii-c1b32a4b97daa7e592c87e04e775b00ab33c8ae2.zip
add more cheat
Diffstat (limited to 'cheat/.cheat/gcc')
-rw-r--r--cheat/.cheat/gcc26
1 files changed, 26 insertions, 0 deletions
diff --git a/cheat/.cheat/gcc b/cheat/.cheat/gcc
new file mode 100644
index 0000000..6c3e2f1
--- /dev/null
+++ b/cheat/.cheat/gcc
@@ -0,0 +1,26 @@
+# Compile a file
+gcc file.c
+
+# Compile a file with a custom output
+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
+
+# Change gcc version (for exemple if not work with the last version test the old last)
+# Do this before ./configure or make command
+CC=gcc-6
+CXX=gcc-6