[Flightgear-devel] Problem Building CVS FlightGear
I had not updated my copy of the code base for a few weeks, so I grabbed the CVS for plib, SimGear and FlightGear yesterday, and found that Flightgear would not build. This is on cygwin, which I updated to the latest version yesterday, but still on gcc version 2.95.3-10 (cygwin special). I have done a complete rebuild and reinstall of plib, and SimGear, but compiling FlightGear fails: make[3]: Entering directory `/home/Administrator/FGFS/CVS/FlightGear/build/src/Cockpit' source='../../../src/Cockpit/cockpit.cxx' object='cockpit.o' libtool=no \ depfile='.deps/cockpit.Po' tmpdepfile='.deps/cockpit.TPo' \ depmode=gcc /bin/bash ../../../depcomp \ g++ -DHAVE_CONFIG_H -I. -I../../../src/Cockpit -I../../src/Include -I../../.. -I../../../src -I/usr/local/include -O1 -fno-inline -c -o cockpit.o `test -f '../../../src/Cockpit/cockpit.cxx' || echo '../../../src/Cockpit/'`../../../src/Cockpit/cockpit.cxx In file included from ../../../src/Cockpit/cockpit.hxx:35, from ../../../src/Cockpit/cockpit.cxx:54: ../../../src/Cockpit/hud.hxx: In method `void fgLineList::draw()': ../../../src/Cockpit/hud.hxx:380: implicit declaration of function `int for_each(...)' make[3]: *** [cockpit.o] Error 1 make[3]: Leaving directory `/home/Administrator/FGFS/CVS/FlightGear/build/src/Cockpit' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/Administrator/FGFS/CVS/FlightGear/build/src/Cockpit' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/Administrator/FGFS/CVS/FlightGear/build/src' make: *** [all-recursive] Error 1 The only other reference to for_each() in the FlightGear code is in Main/fg_io.cxx, where is has a SG_USING_STD(for_each); before it. I have tried blindly putting this in hud.cxx, but to no avail. Any ideas? Richard Bytheway ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
Re: [Flightgear-devel] Problem Building CVS FlightGear
Richard Bytheway writes: I have done a complete rebuild and reinstall of plib, and SimGear, but compiling FlightGear fails: ../../../src/Cockpit/hud.hxx:380: implicit declaration of function `int for_each(...)' Hmm... There is no 'for_each()' call in the hud.hxx in the CVS try deleting hud.hxx and issuing a 'cvs up' You probably picked this up from my '2D 3D HUD consolidation' which never made it into CVS Don't really understand why you are having a problem with 'for_each()' though as it is defined in stl_algol.h I guess you could try adding #include algorithm Norman ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
RE: [Flightgear-devel] Problem Building CVS FlightGear
-Original Message- From: Norman Vine [mailto:[EMAIL PROTECTED]] Sent: 04 December 2002 1:15 pm To: [EMAIL PROTECTED] Subject: Re: [Flightgear-devel] Problem Building CVS FlightGear Richard Bytheway writes: I have done a complete rebuild and reinstall of plib, and SimGear, but compiling FlightGear fails: ../../../src/Cockpit/hud.hxx:380: implicit declaration of function `int for_each(...)' Hmm... There is no 'for_each()' call in the hud.hxx in the CVS try deleting hud.hxx and issuing a 'cvs up' You probably picked this up from my '2D 3D HUD consolidation' which never made it into CVS Don't really understand why you are having a problem with 'for_each()' though as it is defined in stl_algol.h I guess you could try adding #include algorithm Norman Deleting the files in /Cockpits/ and re-getting them fixed it. The glitch probably crept in due to my slightly odd way of getting the cvs for FlightGear and SimGear. My local ISP mangles the dns badly enough that I cannot use CVS directly, so I run cvs on a different machine, and then scp across to my local machine. I think I need to look at my scp flags and options to make sure it overwrites files... Thanks. Richard ___ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel