I recently downloaded MinGW-w64 from Sourceforge onto my external hard drive, where all the files reside in:
E:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64\bin
When I try compiling my first "Hello World" program using gcc on Windows 8.1, I get a cc1.exe System Error, that tells me
The program can't start because libwinpthread-1.dll is missing. Try reinstalling the program to fix the problem.
And yet, libwinpthread-1.dll (all 54,784 bytes of it) is sitting right there in the very same directory as gcc.exe. Do I really need to reinstall everything, or is something else going wrong here?
I know this post is over two years old but I recently had the same problem when using CMake.
I fixed it by adding MinGW to the "Path" Envionment Variable: I am using Windows 10 Home.
C:\MinGW\bin
I Hope I could help. If not you, maybe someone else.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With