Page 1 of 1

Implicit declaration warnings in C

Posted: Wed Jun 10, 2009 4:34 am
by hamster975
I've been trying to use chipmunk in a program written in C. When I build the program (using make on Linux) among all the other errors I get lots of warnings that look like this:

warning: implicit declaration of function ‘cpBodyGetAngle’

From lines like this one:

float angle = (float)cpBodyGetAngle(s->body);

This seems to be triggered by most, if not all, of the get/set functions for 'body's. I have #included "chipmunk.h" in the files so it looks like these functions aren't prototyped correctly.
I'm quite new to C so I'm not sure about whether this is an issue or not, is it due to something I've done wrong, or is it a problem with Chipmunk, can I ignore it?

Thanks for your help!

P.S. Great physics engine! From the demos Chipmunk looks good, it's fast and reasonably lightweight, you've probably saved me a lot of time, thanks!