2016-09-01 4 views
-1

내 컴퓨터에 Clion을 설정하려고합니다. 나는 Clion과 mingw를 모두 시험해 보았고 툴 체인 위치를 가리킬 때 똑같은 오류가 발생했습니다. 지시에 따라 필요한 패키지를 모두 설치하고 제거합니다. 작동하지 않습니다.W10 + Clion, 오류 설정

다른 사람이이 설정 문제를 겪었습니까?

Error:The C++ compiler "/usr/bin/c++.exe" is not able to compile a simple test program. 
It fails with the following output: 
Change Dir: /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/__default__/CMakeFiles/CMakeTmp 
Run Build Command:"/usr/bin/make.exe" "cmTC_4ce80/fast" 
/usr/bin/make -f CMakeFiles/cmTC_4ce80.dir/build.make CMakeFiles/cmTC_4ce80.dir/build 
make[1]: Entering directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/__default__/CMakeFiles/CMakeTmp' 
Building CXX object CMakeFiles/cmTC_4ce80.dir/testCXXCompiler.cxx.o 
/usr/bin/c++.exe -o CMakeFiles/cmTC_4ce80.dir/testCXXCompiler.cxx.o -c /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/__default__/CMakeFiles/CMakeTmp/testCXXCompiler.cxx 
Linking CXX executable cmTC_4ce80.exe 
/cygdrive/c/Users/satin/.CLion2016.2/system/cygwin_cmake/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_4ce80.dir/link.txt --verbose=1 
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_4ce80.dir/testCXXCompiler.cxx.o -o cmTC_4ce80.exe -Wl,--out-implib,libcmTC_4ce80.dll.a -Wl,--major-image-version,0,--minor-image-version,0 
c++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found 
compilation terminated. 
make[1]: *** [CMakeFiles/cmTC_4ce80.dir/build.make:98: cmTC_4ce80.exe] Error 1 
make[1]: Leaving directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/__default__/CMakeFiles/CMakeTmp' 
make: *** [Makefile:126: cmTC_4ce80/fast] Error 2 
CMake will not be able to correctly generate this project. 
Error:Configuration Debug 
The C++ compiler "/usr/bin/c++.exe" is not able to compile a simple test program. 
It fails with the following output: 
Change Dir: /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Debug/CMakeFiles/CMakeTmp 
Run Build Command:"/usr/bin/make.exe" "cmTC_4526e/fast" 
/usr/bin/make -f CMakeFiles/cmTC_4526e.dir/build.make CMakeFiles/cmTC_4526e.dir/build 
make[1]: Entering directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Debug/CMakeFiles/CMakeTmp' 
Building CXX object CMakeFiles/cmTC_4526e.dir/testCXXCompiler.cxx.o 
/usr/bin/c++.exe -o CMakeFiles/cmTC_4526e.dir/testCXXCompiler.cxx.o -c /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Debug/CMakeFiles/CMakeTmp/testCXXCompiler.cxx 
Linking CXX executable cmTC_4526e.exe 
/cygdrive/c/Users/satin/.CLion2016.2/system/cygwin_cmake/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_4526e.dir/link.txt --verbose=1 
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_4526e.dir/testCXXCompiler.cxx.o -o cmTC_4526e.exe -Wl,--out-implib,libcmTC_4526e.dll.a -Wl,--major-image-version,0,--minor-image-version,0 
c++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found 
compilation terminated. 
make[1]: *** [CMakeFiles/cmTC_4526e.dir/build.make:98: cmTC_4526e.exe] Error 1 
make[1]: Leaving directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Debug/CMakeFiles/CMakeTmp' 
make: *** [Makefile:126: cmTC_4526e/fast] Error 2 
CMake will not be able to correctly generate this project. 
Error:Configuration Release 
The C++ compiler "/usr/bin/c++.exe" is not able to compile a simple test program. 
It fails with the following output: 
Change Dir: /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Release/CMakeFiles/CMakeTmp 
Run Build Command:"/usr/bin/make.exe" "cmTC_0c461/fast" 
/usr/bin/make -f CMakeFiles/cmTC_0c461.dir/build.make CMakeFiles/cmTC_0c461.dir/build 
make[1]: Entering directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Release/CMakeFiles/CMakeTmp' 
Building CXX object CMakeFiles/cmTC_0c461.dir/testCXXCompiler.cxx.o 
/usr/bin/c++.exe -o CMakeFiles/cmTC_0c461.dir/testCXXCompiler.cxx.o -c /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Release/CMakeFiles/CMakeTmp/testCXXCompiler.cxx 
Linking CXX executable cmTC_0c461.exe 
/cygdrive/c/Users/satin/.CLion2016.2/system/cygwin_cmake/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_0c461.dir/link.txt --verbose=1 
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_0c461.dir/testCXXCompiler.cxx.o -o cmTC_0c461.exe -Wl,--out-implib,libcmTC_0c461.dll.a -Wl,--major-image-version,0,--minor-image-version,0 
c++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found 
compilation terminated. 
make[1]: *** [CMakeFiles/cmTC_0c461.dir/build.make:98: cmTC_0c461.exe] Error 1 
make[1]: Leaving directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/Release/CMakeFiles/CMakeTmp' 
make: *** [Makefile:126: cmTC_0c461/fast] Error 2 
CMake will not be able to correctly generate this project. 
Error:Configuration RelWithDebInfo 
The C++ compiler "/usr/bin/c++.exe" is not able to compile a simple test program. 
It fails with the following output: 
Change Dir: /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/RelWithDebInfo/CMakeFiles/CMakeTmp 
Run Build Command:"/usr/bin/make.exe" "cmTC_0238e/fast" 
/usr/bin/make -f CMakeFiles/cmTC_0238e.dir/build.make CMakeFiles/cmTC_0238e.dir/build 
make[1]: Entering directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/RelWithDebInfo/CMakeFiles/CMakeTmp' 
Building CXX object CMakeFiles/cmTC_0238e.dir/testCXXCompiler.cxx.o 
/usr/bin/c++.exe -o CMakeFiles/cmTC_0238e.dir/testCXXCompiler.cxx.o -c /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/RelWithDebInfo/CMakeFiles/CMakeTmp/testCXXCompiler.cxx 
Linking CXX executable cmTC_0238e.exe 
/cygdrive/c/Users/satin/.CLion2016.2/system/cygwin_cmake/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_0238e.dir/link.txt --verbose=1 
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_0238e.dir/testCXXCompiler.cxx.o -o cmTC_0238e.exe -Wl,--out-implib,libcmTC_0238e.dll.a -Wl,--major-image-version,0,--minor-image-version,0 
c++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found 
compilation terminated. 
make[1]: *** [CMakeFiles/cmTC_0238e.dir/build.make:98: cmTC_0238e.exe] Error 1 
make[1]: Leaving directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/RelWithDebInfo/CMakeFiles/CMakeTmp' 
make: *** [Makefile:126: cmTC_0238e/fast] Error 2 
CMake will not be able to correctly generate this project. 
Error:Configuration MinSizeRel 
The C++ compiler "/usr/bin/c++.exe" is not able to compile a simple test program. 
It fails with the following output: 
Change Dir: /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/MinSizeRel/CMakeFiles/CMakeTmp 
Run Build Command:"/usr/bin/make.exe" "cmTC_7f6fc/fast" 
/usr/bin/make -f CMakeFiles/cmTC_7f6fc.dir/build.make CMakeFiles/cmTC_7f6fc.dir/build 
make[1]: Entering directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/MinSizeRel/CMakeFiles/CMakeTmp' 
Building CXX object CMakeFiles/cmTC_7f6fc.dir/testCXXCompiler.cxx.o 
/usr/bin/c++.exe -o CMakeFiles/cmTC_7f6fc.dir/testCXXCompiler.cxx.o -c /cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/MinSizeRel/CMakeFiles/CMakeTmp/testCXXCompiler.cxx 
Linking CXX executable cmTC_7f6fc.exe 
/cygdrive/c/Users/satin/.CLion2016.2/system/cygwin_cmake/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_7f6fc.dir/link.txt --verbose=1 
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_7f6fc.dir/testCXXCompiler.cxx.o -o cmTC_7f6fc.exe -Wl,--out-implib,libcmTC_7f6fc.dll.a -Wl,--major-image-version,0,--minor-image-version,0 
c++: fatal error: -fuse-linker-plugin, but cyglto_plugin.dll not found 
compilation terminated. 
make[1]: *** [CMakeFiles/cmTC_7f6fc.dir/build.make:98: cmTC_7f6fc.exe] Error 1 
make[1]: Leaving directory '/cygdrive/c/Users/satin/.CLion2016.2/system/cmake/generated/untitled-9502414e/9502414e/MinSizeRel/CMakeFiles/CMakeTmp' 
make: *** [Makefile:126: cmTC_7f6fc/fast] Error 2 
CMake will not be able to correctly generate this project. 

답변

0

Cygwin에서의 C++ 컴파일러 (또는 아마 링커) 여러 Cygwin packages의 일부가 될 수 cyglto_plugin.dll을 찾을 수 없습니다 :

내가 점점 오전 오류입니다. Cygwin을 설치해야하는지 아니면 자체 설치 프로그램에서 가져올 지 여부와 상관없이 Clion이 어떻게 작동하는지 모르겠습니다. 사용자가 Cygwin을 설치해야하는 경우 적절한 패키지를 설치했는지 확인하고 DLL이 제대로 설치되어 있는지 확인하십시오.

0

모든 패키지를 제거하고 다시 설치했습니다. 다운로드 옵션을 사용하면 여러 버전을 다운로드 할 수 있다고 생각합니다. 그게 내가 한 짓이고 그때 갈등을 일으킨다. 문제가 해결되었습니다.