gcc】 编译工具【linux】


编译文件

gcc file.c

使用自定义输出编译文件

gcc -o file file.c

调试符号

gcc -g

使用所有符号进行调试

gcc -ggdb3

构建64字节

gcc -m64

将目录{/usr/Include/myPersonnal/lib/}包含到 #include <....>

使用此选项,{/usr/include/myPersonnal/lib/}中的文件不会报告任何警告/错误

gcc -isystem /usr/include/myPersonnal/lib/

为windows构建GUI(Mingw)(将禁用术语/控制台)

gcc -mwindows

gcc】 Compile tool【linux】


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


腾图小抄 SCWY.net v0.03 小抄561条 自2022-01-02访问368874次