Page 1 of 1

Compiling with VS2013

PostPosted: Wed Feb 04, 2015 1:47 am
by PsyKing
Hello,

So I just downloaded Chipmunk Physics 7.0.0 from the website and got the build set up with CMake. However, when I go to compile it (Visual Studio 2013 Community Edition), the error of not finding pthread.h comes up in cpHastySpace.c. Is there a way to avoid using POSIX threads for cpHastySpace or will I have to download the library that does POSIX threading on Windows?

Thanks!

Re: Compiling with VS2013

PostPosted: Mon Mar 16, 2015 8:05 pm
by ewing
I just hit this myself. I dropped in winpthreads.h from Lockless Inc. and it seemed to solve the problem for me. (Haven't heavily tested it.) It is a header-only pthreads implementation/shim for Windows (Win32) under what appears to be the 3-clause BSD license.

http://locklessinc.com/downloads/
http://locklessinc.com/downloads/winpthreads.h

It would be good to see this cleaned up/abstracted a little more in Chipmunk. For example, WinRT threads are a different beast than Win32 threads.