Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mqumail opened this issue Jun 28, 2020 · 3 comments
Open

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

mqumail opened this issue Jun 28, 2020 · 3 comments

Comments

@mqumail
Copy link

mqumail commented Jun 28, 2020

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.

@AngledLuffa
Copy link
Contributor

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
Copy link

Yes, no joy here as yet either.

@FastCognition
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants