stanfordnlp/GloVe

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

mqumail opened this issue · 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.

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

Yes, no joy here as yet either.

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