原文:進行編譯時提示'error: unrecognized command line option "-std=gnu11"'如何處理?

答: 說明編譯器不支持此選項,那么在Makefile中替換此選項 std gnu 替換成 std gnu 或 std c 或 std c 等,主要看編譯器都支持哪些編譯選項,筆者的支持 std gnu , 因此在Makefile中替換選項 std gnu 為 std gnu ...

2019-10-28 17:14 0 1607 推薦指數:

查看詳情

g++: error: unrecognized command line option ‘-std=C++11

一個小程序,在編譯的時候出錯,原來使用的編譯命令是 g++ -std=C++11 array.cpp -o array.exe g++: error: unrecognized command line option ‘-std=C++11’ 修改為使用g++的絕對路徑 /usr/bin ...

Wed Feb 27 20:04:00 CST 2019 0 1513
C11 (GNU Dialect) -std=gnu11 和 -std=c11

C11 (GNU Dialect) -std=gnu11 和 -std=c11 C11 (GNU Dialect) -std=gnu11 和 -std=c11 用於 IntelliSense 的 C 語言標准的版本。注意: GNU 標准僅用於查詢設置編譯器以獲取 GNU 定義 ...

Mon Jul 05 08:20:00 CST 2021 0 154
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM