aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/cheat/gcc
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2019-09-05 07:05:07 +0200
committerneodarz <neodarz@neodarz.net>2019-09-05 07:05:07 +0200
commite0c0d4b38cde20e2300e86b69414dd9851b47456 (patch)
tree5df65243447352a9637d1f783247bfd5ccff2ef4 /dotfiles/cheat/gcc
parentdc45bf89a66ec6c8cd25cf5605deb853f6984705 (diff)
downloaddotfiles_dotdrop-e0c0d4b38cde20e2300e86b69414dd9851b47456.tar.xz
dotfiles_dotdrop-e0c0d4b38cde20e2300e86b69414dd9851b47456.zip
ooo
Diffstat (limited to 'dotfiles/cheat/gcc')
-rw-r--r--dotfiles/cheat/gcc26
1 files changed, 26 insertions, 0 deletions
diff --git a/dotfiles/cheat/gcc b/dotfiles/cheat/gcc
new file mode 100644
index 0000000..6c3e2f1
--- /dev/null
+++ b/dotfiles/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