I’ve tried several versions and can’t get an example code compiling - stackoverflow post. long list undefined reference to
__mingw_free’` either GNU or LLVM MinGW
I tried to compile the source with llvm mingw-w64 but Cmake gave error:
D:\Dev\C\glfw-3.3.3>cmake .
-- The C compiler identification is Clang 11.0.0
-- Detecting C compiler ABI info
CMake Error: Generator: execution of make failed. Make command was: nmake -f Makefile /nologo cmTC_edc31\fast &&
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: D:/MinGW/llvm-mingw/bin/gcc.exe
CMake Error: Generator: execution of make failed. Make command was: nmake -f Makefile /nologo cmTC_d98c9\fast &&
-- Check for working C compiler: D:/MinGW/llvm-mingw/bin/gcc.exe - broken
CMake Error at D:/program Files/CMake/share/cmake-3.20/Modules/CMakeTestCCompiler.cmake:66 (message):
The C compiler
"D:/MinGW/llvm-mingw/bin/gcc.exe"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: D:/Dev/C/glfw-3.3.3/CMakeFiles/CMakeTmp
Run Build Command(s):nmake -f Makefile /nologo cmTC_d98c9\fast && The system cannot find the file specified
Generator: execution of make failed. Make command was: nmake -f Makefile /nologo cmTC_d98c9\fast &&
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
Please, can you give me a link to an exact version that works?