The only way I can get SimGear to build is to replace SG_USING_STD(sort);
with SG_USING_NAMESPACE(std); Nothing else seems to work. I have tried cleaning and rebuilding from scratch *multiple* times. Jonathan Polley On Thursday, March 21, 2002, at 06:43 AM, David Megginson wrote: > Jonathan Polley writes: > >> MSVC 6.0 still whines about >> >> props.cxx >> C:\SimGear\simgear\misc\props.cxx(23) : error C2039: 'sort' : is not a >> member of 'std' >> C:\SimGear\simgear\misc\props.cxx(23) : error C2873: 'sort' : symbol >> cannot be used in a using-declaration >> C:\SimGear\simgear\misc\props.cxx(801) : error C2065: 'sort' : undeclared >> identifier > > OK, first let's make sure that my code is correct ANSI C++ before we > beat up on MSVC. Basically, I have this: > > #include <algorithm> > SG_USING_STD(sort); > > which is equivalent to > > #include <algorithm> > using std::sort; > > Is this correct? I think it is, but confirmation would be nice. > > If this is correct, then the next step is to add #ifdef's for MSVC > (yech). > > > All the best, > > > David > > -- > David Megginson > [EMAIL PROTECTED] > > > _______________________________________________ > Flightgear-devel mailing list > [EMAIL PROTECTED] > http://mail.flightgear.org/mailman/listinfo/flightgear-devel _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
