From: Liam G. <Lia...@wo...> - 2004-11-01 12:58:20
|
On Sun, 2004-10-31 at 00:19, Dan S wrote: > I was using ln_get_earth_sun_dist( current_day ); with > libnova/earth.h included and it did not report a > distance close to the distance i had found using the > pythagorean theorom, however when i changed my include > to libnova/libnova.h it worked fine. Is this by > design or a bug? I've managed to reproduce using the latest CVS. Can you enable -Wall in your compiler settings. This should give you some warnings about implicit declarations. It looks like the call to get the current JD is failing because it is being implicitly declared (most likely as a 'int func(int)') in your code. Can you try this again and also #include <libnova/julian_day.h> Liam |