Open Sabine-Schnabeltier opened 6 years ago
I am afraid Windows support is somewhat limited on master currently.
I recommend to go try the 'stable' branch instead.
Stable is not building either. The timespec
struct ends up with multiple definitions.
E.g.
xdispatch\libpthread_workqueue\src\windows\times.h(15): error C2011: 'timespec': 'struct' type redefinition (compiling source file xdispatch\libpthread_workqueue\src\windows\manager.c) 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\time.h(40): note: see declaration of 'timespec' (compiling source file xdispatch\libpthread_workqueue\src\windows\manager.c)
Stable is not building either. The
timespec
struct ends up with multiple definitions.E.g.
xdispatch\libpthread_workqueue\src\windows\times.h(15): error C2011: 'timespec': 'struct' type redefinition (compiling source file xdispatch\libpthread_workqueue\src\windows\manager.c) 2> C:\Program Files (x86)\Windows Kits\10\Include\10.0.17134.0\ucrt\time.h(40): note: see declaration of 'timespec' (compiling source file xdispatch\libpthread_workqueue\src\windows\manager.c)
This is using the MSVC toolchain. This should be fixed on current master as of 68e917cc21e48f13bf73368a693005e9840e5079.
I do not have the resources to also fix master for the msys/mingw toolchain though. Sorry for that. I welcome any pull requests of course.
Using msys2 under Windows 10, the following warnings and errors are given, preventing the build of the library.