Cannot compile clion

I installed Clion and installed a compiler, but when starting the basic template I get errors in Clion.

 

CMake Error at /cygdrive/c/Users/Izildo/.CLion2018.1/system/cygwin_cmake/share/cmake-3.10.3/Modules/CMakeTestCXXCompiler.cmake:45 (message):
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/Izildo/CLionProjects/temp/cmake-build-debug/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make.exe" "cmTC_2c186/fast"
/usr/bin/make -f CMakeFiles/cmTC_2c186.dir/build.make CMakeFiles/cmTC_2c186.dir/build
make[1]: Entering directory '/cygdrive/c/Users/Izildo/CLionProjects/temp/cmake-build-debug/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_2c186.dir/testCXXCompiler.cxx.o
/usr/bin/c++.exe -o CMakeFiles/cmTC_2c186.dir/testCXXCompiler.cxx.o -c /cygdrive/c/Users/Izildo/CLionProjects/temp/cmake-build-debug/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTC_2c186.exe
/cygdrive/c/Users/Izildo/.CLion2018.1/system/cygwin_cmake/bin/cmake.exe -E cmake_link_script CMakeFiles/cmTC_2c186.dir/link.txt --verbose=1
/usr/bin/c++.exe -Wl,--enable-auto-import CMakeFiles/cmTC_2c186.dir/testCXXCompiler.cxx.o -o cmTC_2c186.exe -Wl,--out-implib,libcmTC_2c186.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_2c186.dir/build.make:98: cmTC_2c186.exe] Error 1
make[1]: Leaving directory '/cygdrive/c/Users/Izildo/CLionProjects/temp/cmake-build-debug/CMakeFiles/CMakeTmp'
make: *** [Makefile:126: cmTC_2c186/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 "/cygdrive/c/Users/Izildo/CLionProjects/temp/cmake-build-debug/CMakeFiles/CMakeOutput.log".
See also "/cygdrive/c/Users/Izildo/CLionProjects/temp/cmake-build-debug/CMakeFiles/CMakeError.log".

0

Hi! Please make sure that you've installed all required packages listed in the web help article

0

请先登录再写评论。