1

我在使用 android NDK 编译时出现此错误,

错误日志

error: no matching function for call to 'sort(std::vector<BoundingBox>::iterator, std::vector<BoundingBox>::iterator, CPlayerScoreLabelEntityManager::PostEnterLevelNewEntitySpawned(EntityInfo*, CGameEntity*)::BoundingBoxCompare)'
jni/../../Classes/grannygamelib/CEntityManager.cpp:2695:65: note: candidates are:
/Users/developer2/Documents/PROGRAMMI/ANDROID_NDK/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_algo.h:5431:5: note: template<class _RAIter> void std::sort(_RAIter, _RAIter)
/Users/developer2/Documents/PROGRAMMI/ANDROID_NDK/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_algo.h:5467:5: note: template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)

我能做些什么 ?

4

1 回答 1

0

错误很明显,您正在尝试在sort与可用函数签名不匹配的函数上使用参数。

您应该sort使用正确的参数调用该函数!

于 2013-07-18T11:38:24.977 回答