1

I'm trying to compile my project using cmake with mingw but getting error:

     cmake -G "MinGW Makefiles" ../
-- The C compiler identification is GNU 6.3.0
-- The CXX compiler identification is GNU 6.3.0
-- Check for working C compiler: D:/mingw/bin/gcc.exe
-- Check for working C compiler: D:/mingw/bin/gcc.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
  The C compiler "D:/mingw/bin/gcc.exe" is not able to compile a simple test
  program.

Where is the problem?

Kacper Czyż
  • 41
  • 2
  • 7

1 Answers1

0

Sometimes there are problems if the directory has any spaces in it's name, like yours has in "Program files". Try to copy the sdk to another location without spaces and see what happens