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

How to compile on windows? #90

Open
Cool-Joe opened this issue Jul 31, 2024 · 1 comment
Open

How to compile on windows? #90

Cool-Joe opened this issue Jul 31, 2024 · 1 comment
Labels

Comments

@Cool-Joe
Copy link

[D:\Download\dev\wsServer-master] make
"  CC      src/ws.o"
src/ws.c:20:21: fatal error: pthread.h: No such file or directory
 #include <pthread.h>
                     ^
compilation terminated.
make: *** [src/ws.o] Error 1

Windows does not (and is unlikely to ever) support pthreads natively. So I wonder how this code can be compiled on windows?

@Theldus
Copy link
Owner

Theldus commented Jul 31, 2024

Hi @Cool-Joe, yes, you're right.
wsServer is compatible with Windows only via builds with MinGW/MSYS2.

On Building on Windows there is a detailed step-by-step guide on how to do this.

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

No branches or pull requests

2 participants