Sorry, no time to look into this, but it's presumably trivial:
In file included from astro.cpp:14:
astro.h:43: parse error before `&'
astro.cpp:370: parse error before `&'
astro.cpp: In function `bool astro::parseDate(...)':
astro.cpp:379: `s' undeclared (first use this function)
astro.cpp:379: (Each undeclared identifier is reported only once
astro.cpp:379: for each function it appears in.)
astro.cpp:380: implicit declaration of function `int sscanf(...)'
astro.cpp:400: warning: comparison between signed and unsigned
astro.cpp:403: `date' undeclared (first use this function)
make[3]: *** [astro.o] Error 1
make[3]: Leaving directory `/usr/local/cvs/celestia/src/celengine'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/cvs/celestia/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/cvs/celestia'
make: *** [all-recursive-am] Error 2
Bye Fridger
Chris: your latest checkin crashes under Linux
-
Topic authort00fri
- Developer
- Posts: 8772
- Joined: 29.03.2002
- Age: 22
- With us: 22 years 7 months
- Location: Hamburg, Germany
chris wrote:Ugh . . . I'm almost certain that I forgot to include one or both of string and cstdio, but I'll have to wait until I get back from work to do anything about it. Sorry about the mess . . .
--Chris
Sure enough, despite my lack of time I was curious right away and eliminated the obvious omission;-)
It was the missing
#include <string>
#include <cstdio>
includes, as you also suggested.
Bye Fridger