Cc1.exe system error - libwinpthread-1.dll is missing - but it is not

I recently downloaded MinGW-w64 from Sourceforge to my external hard drive, where all the files are located:

E:\mingw-w64\x86_64-4.9.2-posix-seh-rt_v3-rev1\mingw64\bin

When I try to compile my first "Hello World" program with gcc on Windows 8.1, I get the cc1.exe system error that tells me

The program cannot start because libwinpthread-1.dll is missing. Try reinstalling the program to fix the problem.

Nevertheless, libwinpthread-1.dll (all 54.784 bytes) is located in the same directory as gcc.exe. Do I really need to reinstall everything or is something wrong here?

+6
source share
3 answers

, , CMake.

, MinGW "Path": Windows 10 Home.

  1. " Windows" + /
  2. " "
  3. " "
  4. ""
  5. "" " ".
  6. MinGW. C:\MinGW\bin

, . , , - .

+16

, :

pacman -Fsy "libwinpthread-1.dll"
pacman -S mingw64/mingw-w64-x86_64-libwinpthread-git
0

, . , , . -static .

:

g++.exe -o......\bin\connect.exe obj\Release\src\connect.o -static

0
source

All Articles