I have written a function in C++ and built successfully.
However, if I just calling it from another function in C++, then the built failed.
double getlistvalue(boost::python::list l, int index)
{
if (index = -1)
return 0;
else
return boost::python::extract<double>(l[index]);
}
double xx(boost::python::list l, int index)
{
return getlistvalue(l, index);
}
the above code, without the second function, it builds.
here is the error info: error info
Please share ideas of how to solve it. thanks a lot.