Seems that the file does not include config.h
Try this patch on uiuc_gear.cpp ( add the 3 lines marked with +,
without the + ) :

D:\FlightGear\cvs\FlightGear\src\FDM\UIUCModel>cvs -z3 -q diff -u
uiuc_gear.cpp
Index: uiuc_gear.cpp
===================================================================
RCS file:
/var/cvs/FlightGear-0.9/FlightGear/src/FDM/UIUCModel/uiuc_gear.cpp,v
retrieving revision 1.4
diff -u -r1.4 uiuc_gear.cpp
--- uiuc_gear.cpp       25 Jul 2003 17:54:14 -0000      1.4
+++ uiuc_gear.cpp       13 Aug 2003 05:53:24 -0000
@@ -63,6 +63,9 @@
 **********************************************************************/

 #include <simgear/compiler.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
 #include <simgear/misc/sg_path.hxx>
 #include <Aircraft/aircraft.hxx>
 #include <Main/fg_props.hxx>

-Fred

Al West wrote:
To: "'FlightGear developers discussions'" <[EMAIL PROTECTED]>
Sent: Wednesday, August 13, 2003 7:01 AM
Subject: RE: [Flightgear-devel] Problems compiling CVS version


> > /usr/include/c++/3.2/limits:942: parse error before `throw'
> > /usr/include/c++/3.2/limits:943:22: macro "max" requires 2 arguments,
> > but only 1  given
> >
> > This error comes from a <windows.h> and gnu STL header clash where
> either all of the STL > headers must be include either before or after
> <windows.h> to avoid this clash or to #define NOMINMAX
>
> >Powers tobe have tried to squash it by having the autoconfig mechanism
> #define NOMINMAX in the FGFS config.h file
>
> I've looked at config.h and it's not been defined - I've added a line
> #define NOMINMAX 1
> But this does not resolve the problem.
> I'm also having the same problem compiling terragear - my main reason
> for compiling flightgear was to ensure that all the prereqs. For
> terragear have been fulfilled.
>
> >My guess is that the FGFS "config.h" is not be be being included in a
> file
>
> This might be the case, however it's there in the Makefile so it
> *should* be included.
>
> >Some previous discussion on this issue in this thread
> http://www.menet.umn.edu/~curt/lists/fgfs/archive-200212/msg00050.html
>
> Thanks for the link - but then as well as being totally lost it all went
> dark too ;-)
>
> Sorry for my n00b questions but I'm a bit new to developing using
> cygwin/gcc and it's taking a while to grasp how all the source hangs
> together - something I'm sure I'll get to grips with over time.  Thanks
> for your help.
> Al



_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to