1
我有这样的错误,而与Android NDK编译,错误在编译时与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)
我能做些什么?
是你的NDK ROOT是否正确定义?你有没有在Eclipse上测试演示? –