0
我試圖編譯使用cmake使用MinGW但得到的錯誤我的項目:CMake的,C編譯器無法編譯簡單的測試程序
cmake -G "MinGW Makefiles" ../
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: D:/mingw/bin/gcc.exe
-- Check for working C compiler: D:/mingw/bin/gcc.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
The C compiler "D:/mingw/bin/gcc.exe" is not able to compile a simple test
program.
問題出在哪裏?
什麼是gcc版本? gcc - 版本來獲取它。通常會因爲舊的gcc版本而發生錯誤。 –
gcc(MinGW.org GCC-6.3.0-1)6.3.0 –
你可以檢查這個,看看是否是這種情況:https://stackoverflow.com/a/38786190/7735711 –