This particular error has come up in multiple other contexts on Stack Overflow, typically regarding Cygwin or git (and involving other executables). I have not seen this in
The problem was that the msys-2.0.dll
that is required in the same directory as the makefile for the program was not matching the same file in:
msys64/usr/bin
I essentially had an older version of this file, and since they did not match up the above error was produced. If you are met with this problem, you need to copy and paste the newer version from above into the directory where you are compiling your software (for me it was the directory with the makefile). Once that was done the software compiled without error.