Chris: your latest checkin crashes under Linux

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Chris: your latest checkin crashes under Linux

Post #1by t00fri » 29.10.2002, 20:31

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
Site Admin
Posts: 4211
Joined: 28.01.2002
With us: 22 years 9 months
Location: Seattle, Washington, USA

Post #2by chris » 29.10.2002, 20:57

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

Avatar
Topic author
t00fri
Developer
Posts: 8772
Joined: 29.03.2002
Age: 22
With us: 22 years 7 months
Location: Hamburg, Germany

Post #3by t00fri » 29.10.2002, 21:15

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


Return to “Bugs”