I need help on using chipmunk with Visual Studio 2008

Official forum for the Chipmunk2D Physics Library.
Post Reply
Integrate
Posts: 1
Joined: Thu Jan 12, 2012 12:49 am
Contact:

I need help on using chipmunk with Visual Studio 2008

Post by Integrate »

Hello. I am having a bit of trouble creating the dll using Visual Studio 2008.

I have performed the following steps:

1) extracted chipmunk 6.0.3 folder
2) opened chipmunk.sln file
3) I can't compile at this point, it says I'm missing stdint.h. I delete the line with #include <stdint.h> from the code and try again
4) It says I'm missing chipmunk.def. Chipmunk.def looks like it is in the project, but I can't open it so I remove it and make a new one. I copy and paste into it the stuff from this post:
http://chipmunk-physics.net/forum/viewt ... f=1&t=1964

5) I now get a series of errors like:
1>chipmunk.def : error LNK2001: unresolved external symbol _cpArbiterGetBodies
1>chipmunk.def : error LNK2001: unresolved external symbol _cpArbiterGetCount
1>chipmunk.def : error LNK2001: unresolved external symbol _cpArbiterGetShapes
1>chipmunk.def : error LNK2001: unresolved external symbol _cpArbiterIsFirstContact
1>chipmunk.def : error LNK2001: unresolved external symbol _cpBBArea
1>chipmunk.def : error LNK2001: unresolved external symbol _cpBBContainsBB

etc...

So I add CHIPMUNK_FFI preprocessor flag to Project->chipmunk Properties->Configuration Properties->C/C++->Preprocessor->Preprocessor Definitions

6) I recompile, no changes, I get same errors as in step 5.

That is as far as I could get through searching the forums. I am very, very new to this, so I am lost now on what to do. Any help would help.

Thanks.
aisman
Posts: 145
Joined: Tue Mar 04, 2008 2:21 am
Contact:

Re: I need help on using chipmunk with Visual Studio 2008

Post by aisman »

Best way:
remove all source file from the project and add existing all again.
Compile the static lib version first.
Chipmunk4PB: The fastest way to write games together with PureBasic and the Chipmunk physics engine.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests