I tried MSYS and it didn't work. The same error arises: Linking CXX shared library libLightfeather.dll /bin/sh: C:/MinGW/bin/c++.exe: Bad file number make[2]: *** [libLightfeather.dll] Error 126 make[1]: *** [CMakeFiles/Lightfeather.dir/all] Error 2 make: *** [all] Error 2 I'm at a lost what to do.