forked from cheat/cheatsheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gcc
21 lines (15 loc) · 521 Bytes
/
gcc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# To compile a file:
gcc file.c
# To compile a file with a custom output:
gcc -o file file.c
# debug symbols:
gcc -g
# debug with all symbols:
gcc -ggdb3
# To build for 64 bits:
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/
# To build a GUI for windows (Mingw) (Will disable the term/console):
gcc -mwindows