hkj447
hkj447

Reputation: 737

gcc.exe error Missing libwinpthread-1.dll, but it is not missing

I attempted the solution found here which said to add MingW to the system path, but this did not work. I installed MingW alongside Codeblocks, and compiling works just fine. However, I have had issues with the the make command, which has led me to trying to see if there is issues with my compiler. Running gcc.exe in CMD gave the error that libwinpthread-1.dll was missing, but it clearly isn't. How can I get my computer to recognize it?

Upvotes: 1

Views: 5143

Answers (1)

GiovanniF
GiovanniF

Reputation: 36

I solved the same problem on my codeblocks going to settings → compiler, choosing "Searching directories" and then choosing "linker" tab below and adding the following path:

C:\Program Files\CodeBlocks\MinGW\x86_64-w64-mingw32\lib

…(or your MingW installation). All libraries are linked statically.

CodeBlocks version 20.03

Upvotes: 2

Related Questions