clion配置出现了问题
刚装上新建一个项目就报错了,报错如下,第一次用clion啊,求帮帮忙,谢谢了.
对了环境是fedora,cmake是clion自带的,gdb也是clion自带的.以前我可以用g++和gcc的.
Error:ERROR /home/xxxhome/Soft/clion/clion-1.0.3/bin/cmake/share/cmake-3.2/Modules/CMakeTestCXXCompiler.cmake:54: The C++ compiler "/usr/bin/g++" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/xxxhome/.clion10/system/cmake/generated/11ecfa14/11ecfa14/__default__/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/gmake" "cmTryCompileExec577085962/fast"
/usr/bin/gmake -f CMakeFiles/cmTryCompileExec577085962.dir/build.make CMakeFiles/cmTryCompileExec577085962.dir/build
gmake[1]: Entering directory '/home/xxxhome/.clion10/system/cmake/generated/11ecfa14/11ecfa14/__default__/CMakeFiles/CMakeTmp'
/home/xxxhome/Soft/clion/clion-1.0.3/bin/cmake/bin/cmake -E cmake_progress_report /home/xxxhome/.clion10/system/cmake/generated/11ecfa14/11ecfa14/__default__/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec577085962.dir/testCXXCompiler.cxx.o
/usr/bin/g++ -o CMakeFiles/cmTryCompileExec577085962.dir/testCXXCompiler.cxx.o -c /home/xxxhome/.clion10/system/cmake/generated/11ecfa14/11ecfa14/__default__/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec577085962
/home/xxxhome/Soft/clion/clion-1.0.3/bin/cmake/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec577085962.dir/link.txt --verbose=1
/usr/bin/g++ CMakeFiles/cmTryCompileExec577085962.dir/testCXXCompiler.cxx.o -o cmTryCompileExec577085962 -rdynamic
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec577085962.dir/build.make:88: recipe for target 'cmTryCompileExec577085962' failed
gmake[1]: Leaving directory '/home/xxxhome/.clion10/system/cmake/generated/11ecfa14/11ecfa14/__default__/CMakeFiles/CMakeTmp'
Makefile:117: recipe for target 'cmTryCompileExec577085962/fast' failed
gmake[1]: *** [cmTryCompileExec577085962] Error 1
gmake: *** [cmTryCompileExec577085962/fast] Error 2
CMake will not be able to correctly generate this project.