GloVe icon indicating copy to clipboard operation
GloVe copied to clipboard

Windows pthread.h is buggy, but this #define fixes it

Open mqumail opened this issue 4 years ago • 3 comments

When running the make command, the build fails with the following error:

src/glove.c:36:10: fatal error: pthread.h: No such file or directory 36 | #include <pthread.h> | ^~~~~~~~~~~ compilation terminated. make: *** [build/glove.o] Error 1

When I look in to the glove.c file, the comment says the #define fixes it but it doesn't: // windows pthread.h is buggy, but this #define fixes it #define HAVE_STRUCT_TIMESPEC #include <pthread.h>

I would appreciate any help.

mqumail avatar Jun 28 '20 22:06 mqumail

Oh, yeah. I wasn't able to get it working on windows yet. Gave up after a little while, but if you have any suggestions, they are welcome

AngledLuffa avatar Jun 28 '20 23:06 AngledLuffa

Yes, no joy here as yet either.

bluetyson avatar Aug 01 '20 05:08 bluetyson

You need to download the threading module from MinGW to solve that issue. It's easy to find in the optional packages of MinGW

FastCognition avatar Jan 12 '21 11:01 FastCognition