> Stupid me. I worded the problem incorrectly. Obviously, the > problem is with > a compile of the FlightGear test program, with the definition or use of > "min".
Here's the offensive code in /usr/local/include/simgear/math/SGMisc.hxx === start === #ifndef SGMisc_H #define SGMisc_H #include <cmath> template<typename T> class SGMisc { public: static T pi() { return T(3.1415926535897932384626433832795029L); } static T min(const T& a, const T& b) === end === The last line, above, is the culprit. As before, the errors are: SGMisc.hxx:28: error: expected unqualified-id before "const" SGMisc.hxx:28: error: expected `)' before "const" SGMisc.hxx:28: error: expected `)' before "const" The rest of the errors (lots of them), likewise involve "min". Jon P.S. What is the test-up application, anyhow? Can we avoid compiling that? Or, is it needed? ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel