RE: [Flightgear-devel] STL errors?
Jon S. Berndt > > > Do you have NOMINMAX defined and > > > > #ifdef HAVE_CONFIG_H > > #include > > #endif > > > > at the beginning of every .cpp/.cxx file ? > > > > -Fred > > Not as far as I know. But this is straight from an unaltered current CVS > distribution of FlightGear. I've got the very latest compilers/tools from > Cygwin, so I thought maybe something had changed with g++. > > Note that "new" JSBSim compiles fine on my machine (same files). Maybe > I'll > dispense with the old JSBSim code in FlightGear immediately. I just wanted > to get the basic distribution compiled as-is. > FG-cvs builds OK here under the latest version of Cygwin without the need for any fixes. However, I have this: LDFLAGS="-L/usr/local/lib" CXXFLAGS="-pipe -O2 -Wall -DWIN32 -DNOMINMAX -DHAVE_WINDOWS_H" CFLAGS=$CXXFLAGS export LDFLAGS export CXXFLAGS export CFLAGS in my BASH.PROFILE file. It used to be needed, but I think it's redundant nowadays Vivian ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
RE: [Flightgear-devel] STL errors?
> Do you have NOMINMAX defined and > > #ifdef HAVE_CONFIG_H > #include > #endif > > at the beginning of every .cpp/.cxx file ? > > -Fred Not as far as I know. But this is straight from an unaltered current CVS distribution of FlightGear. I've got the very latest compilers/tools from Cygwin, so I thought maybe something had changed with g++. Note that "new" JSBSim compiles fine on my machine (same files). Maybe I'll dispense with the old JSBSim code in FlightGear immediately. I just wanted to get the basic distribution compiled as-is. Jon ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d
Re: [Flightgear-devel] STL errors?
Quoting "Jon S. Berndt" : > In trying to rebuild FlightGear under Cygwin, I'm getting all sorts of > errors now when I get to compiling the older JSBSim code, beginning with > FGDeadband.cpp. There errors are these: > > stl_deque.h:446: error: expected unqualified-id before '(' token > deque.tcc:699: error: expected unqualified-id before '(' token > streambuf.tcc:54: error: expected unqualified-id before '(' token > locale_facets.tcc:514:57: macro "min" requires 2 arguments, but only 1 given > istream.tcc:147: error: ISO C++ forbids comparison between pointer and > integer > ... > > Strange. Anyone else see things like this? Do you have NOMINMAX defined and #ifdef HAVE_CONFIG_H #include #endif at the beginning of every .cpp/.cxx file ? -Fred ___ Flightgear-devel mailing list Flightgear-devel@flightgear.org http://mail.flightgear.org/mailman/listinfo/flightgear-devel 2f585eeea02e2c79d7b1d8c4963bae2d