stanfordnlp / GloVe

Software in C and data files for the popular GloVe model for distributed word representations, a.k.a. word vectors or embeddings
Apache License 2.0
6.86k stars 1.51k forks source link

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

Open mqumail opened 4 years ago

mqumail commented 4 years ago

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 | ^~~ 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

I would appreciate any help.

AngledLuffa commented 4 years ago

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

bluetyson commented 4 years ago

Yes, no joy here as yet either.

FastCognition commented 3 years ago

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