Hey guys, I did a bit of looking here for an answer to my question with no luck. I hope this hasn't been answered before. I did see some post saying
TO use Chipmunk as a static library but I didn't see anything on
HOW to actually use the static library. I was able to successfully run the "macstatic.command" script and the directory was generated but I cannot figure out how to use these files. I am trying to get the example Hello World program found in the FAQ working. Here is what I have done so far: I made a folder called Chipmunk including all of the script's output and the helloworld.c source, I modified the code to point directly to the headers like this:
Code: Select all
#include </Users/***MyName***/Desktop/Chipmunk/chipmunk.h>
, and I am trying to compile with this in Terminal:
After entering that many errors come up:
Undefined symbols for architecture x86_64:
"_cpSpaceNew", referenced from:
_main in ccBkVTqw.o
"_cpSegmentShapeNew", referenced from:
_main in ccBkVTqw.o
The list of "Undefined symbols" is quite extensive (too many to include here probably.) What I'm asking is if anyone knows how to abolish these errors and get the code compiling correctly. I apologize in advance if this has an obvious answer or if this has been answered already.
Thank you, zizmax.