It's in util.c ParseString. I'm guessing the problem is incompatibility
between the type "unsigned int" and the type of str.npos, which is
size\_type.
Try changing the two "unsigned int"s to "size\_type".
old:
void ParseString(const string& str, char c, vector<string>& v)
{
unsigned int i1 = 0;
unsigned int i2;
do
{
i2 = str.find(c, i1);
v.push\_back(str.substr(i1, i2-i1));
i1 = i2+1;
}
while (i2 != str.npos);
}
new:
void ParseString(const string& str, char c, vector<string>& v)
{
size\_type i1 = 0;
size\_type i2;
do
{
i2 = str.find(c, i1);
v.push\_back(str.substr(i1, i2-i1));
i1 = i2+1;
}
while (i2 != str.npos);
}
mmalmi@cc.hut.fi wrote: