Compiling with VS2013

Official forum for the Chipmunk2D Physics Library.

Compiling with VS2013

Postby PsyKing » Wed Feb 04, 2015 1:47 am


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?

Posts: 1
Joined: Wed Feb 04, 2015 1:41 am

Re: Compiling with VS2013

Postby ewing » Mon Mar 16, 2015 8:05 pm

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.

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.
Posts: 4
Joined: Tue Sep 03, 2013 4:30 am

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 1 guest