Problem with a custom library

Hi hjavaher,
the code you posted is unusual also for the following reasons:

  1. usually an header file content is inserted in a define block to avoid multiple inclusions, in this way:
#ifndef __lib_gravity__
#define __lib_gravity__
.....
#endif

but the define directive is missing.
2) why are you including .c files in a header?