That actually means that there is another function/declaration called length
elsewhere in your source code structure that has a different function signature.
Find where length()
function is defined, and pass correct structure objects to that function(either of type struct PList
or PList*
)