I'm porting one of my project to iOS, but I have a problem:
Undefined symbols for architecture armv7:
"typeinfo for btRaycastVehicle", referenced from:
typeinfo for OgreVehicle in OgreVehicle.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
My OgreVehicle.hpp:
#ifndef _OGREVEHICLE_H_
#define _OGREVEHICLE_H_
#include "BulletDynamics/Dynamics/btRigidBody.h"
#include "BulletDynamics/Vehicle/btVehicleRaycaster.h"
#include "BulletDynamics/Vehicle/btWheelInfo.h"
#include "BulletDynamics/Vehicle/btRaycastVehicle.h"
#include "Ogre.h"
class OgreVehicle : public btRaycastVehicle{
public:
OgreVehicle(const btVehicleTuning& tuning,btRigidBody* chassis, btVehicleRaycaster*,raycaster ,btScalar idleRPM = 500, btScalar maxRPM = 6000);
virtual void updateVehicle(btScalar step);
btWheelInfo &addWheel(Ogre::SceneNode* node, const btVector3& connectionPointCS0, const btVector3& wheelDirectionCS0,const btVector3& wheelAxleCS,btScalar suspensionRestLength,btScalar wheelRadius,const btVehicleTuning& tuning, bool isFrontWheel);
Ogre::SceneNode* wheelNodes[4];
//Engine related stuff
btScalar currentRPM;
btScalar maxRPM;
btScalar idleRPM;
private:
btScalar currentEngineForce;
btScalar maxEngineForce;
};
#endif
I've added the Bullet Xcode projects and dependencies to my projects, also added the builds and links to my build phases.
Any idea what should I do to solve the problem?
Thank you in advance!
EDIT
The problem will be the virtual function, it overrides the btRaycastVehicle's updateVehicle virtual function. The strange fact: It works on windows with VS11.