hi all,

beeing a newbie to (compile) fgfs, i'm not sure if this is the right
place to ask/mail, maybe fg-user is better?

But anyhow:
i chose to use windows & cygwin
to build the cvs version(s) with the help of
http://www.flightgear.org/Docs/Tutorials/fg_cygwin/fgfs_cygwin.htm

there i ran into two (minor) compile errors:

src/Airports/groundnetwork.cxx : HUGE not defined in cygwin/math.h,
solution, use HUGE_VAL

src/Environment/fgmetar.cxx: barks about undefined streams in simgear
includes
solution, include windows.h

here are my diffs, which led to compiled (and linked) executable:

Index: src/Airports/groundnetwork.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Airports/groundnetwork.cxx,v
retrieving revision 1.11.2.2
diff -u -r1.11.2.2 groundnetwork.cxx
--- src/Airports/groundnetwork.cxx      11 Jul 2007 04:20:22 -0000
1.11.2.2
+++ src/Airports/groundnetwork.cxx      28 Sep 2007 13:17:38 -0000
@@ -840,7 +840,7 @@
   }
   current = i;
   previousInstruction = current->getSpeedAdjustment();
-  double mindist = HUGE;
+  double mindist = HUGE_VAL;
   if (activeTraffic.size())
     {
       double course, dist, bearing, minbearing;
Index: src/Environment/fgmetar.cxx
===================================================================
RCS file: /var/cvs/FlightGear-0.9/source/src/Environment/fgmetar.cxx,v
retrieving revision 1.3
diff -u -r1.3 fgmetar.cxx
--- src/Environment/fgmetar.cxx 21 Feb 2006 01:16:10 -0000      1.3
+++ src/Environment/fgmetar.cxx 28 Sep 2007 13:17:39 -0000
@@ -33,6 +33,14 @@
  * - NSC & mil. color codes
  */

+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+
+#ifdef HAVE_WINDOWS_H
+#  include <windows.h>
+#endif
+
 #include <simgear/math/sg_random.h>
 #include <simgear/timing/sg_time.hxx>
 #include <Main/fg_props.hxx>


Pls incorporate these in the cvs version.

Thanks alot



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to