An error log
-- The C compiler identification is unknown -- Check for working C compiler: D:/MinGW/bin/gcc.exe -- Check for working C compiler: D:/MinGW/bin/gcc.exe -- broken CMake Error at D:/Program Files/JetBrains/CLion 2019.2.3/bin/cmake/win/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "D:/MinGW/bin/gcc.exe" is not able to compile a simple test program.
If it is a CPP program, it may be reported again
-- The CXX compiler identification is unknown
CMAKE could not check the C Compiler ID for unknown reasons, causing compilation to fail
Add the following configuration to the cMakelists.txt file to force the Compiler ID to be specified
INCLUDE(CMakeForceCompiler) CMAKE_FORCE_C_COMPILER(gcc GNU) CMAKE_FORCE_CXX_COMPILER(g++ GNU)
Rerun the cmake directive after adding it
- CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path
- The cxx compiler identification is unknown
- Brief introduction of cmake generating all in vs Project_ BUILD、INSTALL、ZERO_ Check function!!
- Solutions to the problem that CodeBlocks cannot be used
- Cmake compile opencv report error qtcore_ DIR QtOpenglDIR QtGui_ Dir ffmpeg loading failed
- c++ terminate called after throwing an instance of ‘std::system_error‘ what(): Unknown error -1
- Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?
- codeblocks ERROR: You need to specify a debugger program in the debuggers’s settings.
- Cmake error on qt5core
- Recipe for target’Project 1.exe’ failed Cause analysis and solution
- Two methods of cmake in VTK program
- CodeBlocks environment error the compiler could not find a solution to the problem
- error: ‘to_string’ is not a member of ‘std’
- @In slf4j log.info Compile error: cannot find symbol log
- CMake error: error in configuration process, project files may be invalid
- Clion MinGW super fast configuration OpenGL development environment
- Common mistakes and solutions of cmake + QT + VTK
- Eclipse Syntax error, annotations are only available if source level is 1.5 or greater
- Vs2012 compiling PCL dependency library vtk7.0
- eclipse cdt Program “make” not found in PATH