命令行中使用gcc編譯器和gdb調試

先在命令行中輸入g++看看有沒有反應,沒有就百度一下如何添加。php 常見編譯選項 gcc test.c//編譯爲a.exe文件 gcc test.c -o test //編譯爲test.exe文件 gcc test.c -o test -Wall -ansi -pedantic //編譯並檢查錯誤(通常wall便可) gcc test.c -o test -lm //連接數學庫(C++不用) 還
相關文章
相關標籤/搜索