Oops, i accidentally overwrote Core.cpp with my own.
However now I'm getting all of these errors. The project compiles fine in vs so there shouldn't be any syntax errors, but this is what i'm getting. Seems to be mostly to do with maps. Is this the problem you mentioned when you tried compiling a project using std::map?
In file included from jni/Object.h:12:0,
from jni/ParticleSystem.h:9,
from jni/Level.h:4,
from jni/Engine.h:5,
from jni/template.cpp:3:
jni/AlarmManager.h: In member function 'void AlarmManager::Update(float)':
jni/AlarmManager.h:53:25: error: no match for 'operator=' in 'it = ((AlarmManager*)this)->AlarmManager::alarms.std::map<_Key, _Tp, _Compare, _Alloc>::erase [with _Key = std::basic_string<char>, _Tp = Alarm*, _Compare = std::less<std::basic_string<char> >, _Alloc = std::allocator<std::pair<const std::basic_string<char>, Alarm*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Alarm*> >](it)'
jni/AlarmManager.h:53:25: note: candidate is:
C:/android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:156:12: note: std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Alarm*> >& std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Alarm*> >::operator=(const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Alarm*> >&)
C:/android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:156:12: note: no known conversion for argument 1 from 'void' to 'const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Alarm*> >&'
In file included from jni/ParticleSystem.h:9:0,
from jni/Level.h:4,
from jni/Engine.h:5,
from jni/template.cpp:3:
jni/Object.h: At global scope:
jni/Object.h:93:46: error: 'objectPool' was not declared in this scope
jni/Object.h:93:43: error: '>>' should be '> >' within a nested template argument list
In file included from jni/ParticleSystem.h:9:0,
from jni/Level.h:4,
from jni/Engine.h:5,
from jni/template.cpp:3:
jni/Object.h: In static member function 'static void Object::Integrate(Object::MotionState&, float, float)':
jni/Object.h:205:78: error: no match for 'operator+' in 'operator+(AGKQuaternionExt&, const AGKQuaternionExt&)((*(const AGKQuaternionExt*)(& operator*(float const&, const AGKQuaternionExt&)((*(const AGKQuaternionExt*)(& operator+(AGKQuaternionExt&, const AGKQuaternionExt&)((*(const AGKQuaternionExt*)(& c.Object::MotionDerivative::spin))))))))) + d.Object::MotionDerivative::spin'
jni/Object.h:205:78: note: candidate is:
jni/3DMathExt.h:217:25: note: AGKQuaternionExt operator+(AGKQuaternionExt&, const AGKQuaternionExt&)
jni/3DMathExt.h:217:25: note: no known conversion for argument 1 from 'AGKQuaternionExt' to 'AGKQuaternionExt&'
jni/Object.h: In static member function 'static void Object::Forces(Object::MotionState&, float, float, AGKVectorExt&, AGKVectorExt&)':
jni/Object.h:250:31: error: no match for 'operator=' in 'it = state.Object::MotionState::forces.std::map<_Key, _Tp, _Compare, _Alloc>::erase [with _Key = std::basic_string<char>, _Tp = Force*, _Compare = std::less<std::basic_string<char> >, _Alloc = std::allocator<std::pair<const std::basic_string<char>, Force*> >, std::map<_Key, _Tp, _Compare, _Alloc>::iterator = std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Force*> >](it)'
jni/Object.h:250:31: note: candidate is:
C:/android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:156:12: note: std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Force*> >& std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Force*> >::operator=(const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Force*> >&)
C:/android/android-ndk-r8/sources/cxx-stl/gnu-libstdc++/4.6/include/bits/stl_tree.h:156:12: note: no known conversion for argument 1 from 'void' to 'const std::_Rb_tree_iterator<std::pair<const std::basic_string<char>, Force*> >&'
In file included from jni/ParticleSystem.h:10:0,
from jni/Level.h:4,
from jni/Engine.h:5,
from jni/template.cpp:3:
jni/ParticleType.h: At global scope:
jni/ParticleType.h:94:14: error: extra qualification 'ParticleType::' on member 'LocalParticleConstrain' [-fpermissive]
jni/ParticleType.h:95:14: error: extra qualification 'ParticleType::' on member 'LocalDirectionalParticleConstrain' [-fpermissive]
In file included from jni/Level.h:4:0,
from jni/Engine.h:5,
from jni/template.cpp:3:
jni/ParticleSystem.h:31:10: error: 'function' in namespace 'std' does not name a type
jni/ParticleSystem.h:37:7: error: extra qualification 'ParticleSystem::' on member 'SetGlobalParticleMax' [-fpermissive]
In file included from jni/Engine.h:5:0,
from jni/template.cpp:3:
jni/Level.h:39:48: error: 'groups' was not declared in this scope
jni/Level.h:39:45: error: '>>' should be '> >' within a nested template argument list
jni/Level.h:63:117: error: there are no arguments to 'AGKvectorExt' that depend on a template parameter, so a declaration of 'AGKvectorExt' must be available [-fpermissive]
jni/Level.h:63:117: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from jni/Bomb.h:4:0,
from jni/Arena.h:4,
from jni/Engine.h:6,
from jni/template.cpp:3:
jni/Player.h:42:12: error: declaration of 'void Player::Bomb()' [-fpermissive]
jni/Player.h:8:7: error: changes meaning of 'Bomb' from 'struct Bomb' [-fpermissive]
make: *** [obj/local/armeabi/objs/android_player/template.o] Error 1