On 19/10/2005 at 12:05 Georg Vollnhals wrote:

>Hi Erik/Durk?
>Since your update of simple.cxx/hxx on the 18.10.05 the newest CVS 
>version does not compile anymore :-(
>
>Error:
>simple.cxx: In member function `int 
>FGGroundNetwork::findNearestNode(double,
>   double)':
>simple.cxx:1331: error: `HUGE' undeclared (first use this function)
>simple.cxx:1331: error: (Each undeclared identifier is reported only 
>once for
>   each function it appears in.)
>make[2]: *** [simple.o] Fehler 1
>make[1]: *** [all-recursive] Fehler 1
>make: *** [all-recursive] Fehler 1
>
>Any solution?

Cygwin doesn't have HUGE, so change HUGE to HUGE_VAL and -HUGE to -HUGE_VAL
and I suspect this should compile.

I guess that we could do something in compiler.h along the lines of

#ifdef __CYGWIN__
  #define HUGE HUGE_VAL
  #define -HUGE -HUGE_VAL
#endif

or something like that.  Erik?  There is already an instance of this
problem in TerraGear.

BTW, Georg, CVS SimGear should compile on Cygwin 3.4.4 now, and CVS
FlightGear will probably compile on it if you add

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

as the first include for every source (cxx or cpp) file where you get the
strange error message you reported a while ago.

Then send the output of "cvs diff -u" from the FlightGear directory to
Erik, and the 3.4.4 problem should be sorted :-)

Cheers - Dave


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


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

Reply via email to