I've just updated my source code from CVS, but the
build fails with the following:

Making all in Environment
make[2]: Entering directory
`/home/andrew/cbproject/FlightGear-0.9/source/src/Environment'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include
-I../.. -I../../src  -I/usr/X11R6/include
-I/usr/local//include  -g -O2 -D_REENTRANT -MT
environment_mgr.o -MD -MP -MF
".deps/environment_mgr.Tpo" -c -o environment_mgr.o
environment_mgr.cxx; \
then mv -f ".deps/environment_mgr.Tpo"
".deps/environment_mgr.Po"; else rm -f
".deps/environment_mgr.Tpo"; exit 1; fi
In file included from environment_ctrl.hxx:50,
                 from environment_mgr.cxx:31:
fgmetar.hxx: In member function `double
FGMetar::getRain() const':
fgmetar.hxx:45: error: `_rain' undeclared (first use
this function)
fgmetar.hxx:45: error: (Each undeclared identifier is
reported only once for
   each function it appears in.)
fgmetar.hxx: In member function `double
FGMetar::getHail() const':
fgmetar.hxx:46: error: `_hail' undeclared (first use
this function)
fgmetar.hxx: In member function `double
FGMetar::getSnow() const':
fgmetar.hxx:47: error: `_snow' undeclared (first use
this function)
make[2]: *** [environment_mgr.o] Error 1
make[2]: Leaving directory
`/home/andrew/cbproject/FlightGear-0.9/source/src/Environment'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/andrew/cbproject/FlightGear-0.9/source/src'
make: *** [all-recursive] Error 1

It looks as though the methods getRain(), getHail()
and getSnow() rely on private attributes that haven't
been declared. I have tried adding them as int's, but
now get the following error:

Making all in Environment
make[2]: Entering directory
`/home/andrew/cbproject/FlightGear-0.9/source/src/Environment'
if g++ -DHAVE_CONFIG_H -I. -I. -I../../src/Include
-I../.. -I../../src  -I/usr/X11R6/include
-I/usr/local//include  -g -O2 -D_REENTRANT -MT
environment_ctrl.o -MD -MP -MF
".deps/environment_ctrl.Tpo" -c -o environment_ctrl.o
environment_ctrl.cxx; \
then mv -f ".deps/environment_ctrl.Tpo"
".deps/environment_ctrl.Po"; else rm -f
".deps/environment_ctrl.Tpo"; exit 1; fi
environment_ctrl.cxx: In constructor `
   FGMetarEnvironmentCtrl::FGMetarEnvironmentCtrl()':
environment_ctrl.cxx:332: error: no matching function
for call to `
   FGMetarEnvironmentCtrl::MetarThread::start(int)'
/usr/local/include/simgear/threads/SGThread.hxx:134:
error: candidates are: int
   SGThread::start()
make[2]: *** [environment_ctrl.o] Error 1
make[2]: Leaving directory
`/home/andrew/cbproject/FlightGear-0.9/source/src/Environment'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/home/andrew/cbproject/FlightGear-0.9/source/src'
make: *** [all-recursive] Error 1

Sadly my C++ is very sketchy, so I'm struggling to get
past this. However, I'll keep digging, although it
would help if anyone could provide any pointers as to
the likely cause.

Regards

Andrew


        
        
                
___________________________________________________________ 
ALL-NEW Yahoo! Messenger - all new features - even more fun! 
http://uk.messenger.yahoo.com

_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to