I need help on using chipmunk with Visual Studio 2008
Posted: Thu Jan 12, 2012 12:57 am
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.
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.