wsServer icon indicating copy to clipboard operation
wsServer copied to clipboard

How to compile on windows?

Open Cool-Joe opened this issue 1 year ago • 1 comments

[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?

Cool-Joe avatar Jul 31 '24 18:07 Cool-Joe

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.

Theldus avatar Jul 31 '24 19:07 Theldus