Norman Vine wrote: > Roy Vegard Ovesen writes: > > > > I get this error when compiling src/Autopilot/route_mgr.cxx: > > > > > /usr/include/c++/3.2/limits:942:22: macro "min" requires 2 arguments, but > > only 1 given > > In file included from /usr/include/c++/3.2/bits/locale_facets.tcc:43, > > <sigh> > > There is a conflict between <windows.h> and some of the libstdc++ STL headers > unless all of the STL includes are included before <windows.h> or visa versa > > otherwise some versions of the GNU compilers need NOMINMAX defined > > I *really* don't understand why this isn't done in the configure script or > in <simgear/compiler.h> which should be included in all compilations
<simgear/compiler.h> is included in route_mgr.hxx that comes in third position in route_mgr.cxx. I think inclusion of config.h and compiler.h should be located in first place of every .cxx file FWIW: FDM/flight.hxx that comes first begin with STL includes -Fred _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel