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
,,,
#include <simgear/compiler.h>
#include <simgear/debug/logstream.hxx>
SG_USING_STD(sort); <-- This is line 24
...
vector<SGPropertyNode *>
SGPropertyNode::getChildren (const char * name)
{
vector<SGPropertyNode *> children;
int max = _children.size();
for (int i = 0; i < max; i++)
if (compare_strings(_children[i]->getName(), name))
children.push_back(_children[i]);
sort(children.begin(), children.end(), CompareIndices()); <-- Line 801
return children;
}
...
Jonathan Polley
On Wednesday, March 20, 2002, at 07:44 AM, David Megginson wrote:
Jonathan Polley writes:
I just updated to the newest SimGear and tried to build under Windows
using MSVC 6.0. When I did so, I got the following errors:
I've moved the include for <algorithm> higher in the file -- try
checking it out again and see if it builds now.
All the best,
David
--
David Megginson
[EMAIL PROTECTED]
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
