MinGW配置环境 解决方法:Clion配置MinGW运行环境时报错
-- The CXX compiler identification is GNU 8.1.0 -- Check for working C compiler: E:/MinGw/mingw64/bin/gcc.exe -- Check for working C compiler: E:/MinGw/mingw64/bin/gcc.exe -- broken CMake Error at E:/Programming Software/Clion/CLion 2019/bin/cmake/win/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "E:/MinGw/mingw64/bin/gcc.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: E:/Programming Software/浠g爜/C++绋嬪簭璁捐/Clion椤圭洰/HelloWorld/cmake-build-debug/CMakeFiles/CMakeTmp Run Build Command(s):E:/MinGw/mingw64/bin/mingw32-make.exe cmTC_514c4/fast && E:/MinGw/mingw64/bin/mingw32-make.exe -f CMakeFilescmTC_514c4.dirbuild.make CMakeFiles/cmTC_514c4.dir/build mingw32-make.exe[1]: Entering directory 'E:/Programming Software/浠g爜/C++绋嬪簭璁捐/Clion椤圭洰/HelloWorld/cmake-build-debug/CMakeFiles/CMakeTmp' Building C object CMakeFiles/cmTC_514c4.dir/testCCompiler.c.obj E:MinGwmingw64bingcc.exe -o CMakeFilescmTC_514c4.dirtestCCompiler.c.obj -c "E:Programming Software娴狅絿鐖淺C++缁嬪绨拋鎹愵吀Clion妞ゅ湱娲癨HelloWorldcmake-build-debugCMakeFilesCMakeTmptestCCompiler.c" gcc.exe: error: E:Programming Software娴狅絿鐖淺C++缁嬪绨拋鎹愵吀Clion妞ゅ湱娲癨HelloWorldcmake-build-debugCMakeFilesCMakeTmptestCCompiler.c: No such file or directory gcc.exe: fatal error: no input files compilation terminated. mingw32-make.exe[1]: *** [CMakeFilescmTC_514c4.dirbuild.make:65: CMakeFiles/cmTC_514c4.dir/testCCompiler.c.obj] Error 1 mingw32-make.exe[1]: Leaving directory 'E:/Programming Software/浠g爜/C++绋嬪簭璁捐/Clion椤圭洰/HelloWorld/cmake-build-debug/CMakeFiles/CMakeTmp' mingw32-make.exe: *** [Makefile:120: cmTC_514c4/fast] Error 2 CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:2 (project) -- Configuring incomplete, errors occurred! See also "E:/Programming Software/浠g爜/C++绋嬪簭璁捐/Clion椤圭洰/HelloWorld/cmake-build-debug/CMakeFiles/CMakeOutput.log". See also "E:/Programming Software/浠g爜/C++绋嬪簭璁捐/Clion椤圭洰/HelloWorld/cmake-build-debug/CMakeFiles/CMakeError.log".
由于我的项目保存路径有中文如下所示:
E:/Programming Software/浠g爜/C++绋嬪簭璁捐/Clion椤圭洰/HelloWorld/cmake-build-debug/CMakeFiles/CMakeOutput.log". See also "E:/Programming Software/浠g爜/C++绋嬪簭璁捐/Clion椤圭洰/HelloWorld/cmake-build-debug/CMakeFiles/CMakeError.log".
然而MinGW不允许输出路径有中文,所以只需要将项目路径更改,去掉中文就行,下面是我更改后的路径
E:Programming SoftwareClionC++HelloWorld
如果有解决你的问题希望一下,顺便点个赞!!!
本网页所有视频内容由 imoviebox边看边下-网页视频下载, iurlBox网页地址收藏管理器 下载并得到。
ImovieBox网页视频下载器 下载地址: ImovieBox网页视频下载器-最新版本下载
本文章由: imapbox邮箱云存储,邮箱网盘,ImageBox 图片批量下载器,网页图片批量下载专家,网页图片批量下载器,获取到文章图片,imoviebox网页视频批量下载器,下载视频内容,为您提供.
阅读和此文章类似的: 全球云计算