I'm having trouble with linker errors while trying to set up irrBullet, what am i doing wrong?
Code: Select all
Error 3 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 4 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(irrbullet.obj)
Error 5 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(physicsdebug.obj)
Error 6 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(collisionobject.obj)
Error 7 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 8 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 9 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 10 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(liquidbody.obj)
Error 11 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(collisioncallbackinformation.obj)
Error 12 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(irrbulletcommon.obj)
Error 13 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(collisionshape.obj)
Error 14 error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in camera.obj C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(motionstate.obj)
Error 16 error LNK2001: unresolved external symbol "public: static void __cdecl btGImpactCollisionAlgorithm::registerAlgorithm(class btCollisionDispatcher *)" (?registerAlgorithm@btGImpactCollisionAlgorithm@@SAXPAVbtCollisionDispatcher@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 17 error LNK2001: unresolved external symbol "public: __thiscall btDbvtBroadphase::btDbvtBroadphase(class btOverlappingPairCache *)" (??0btDbvtBroadphase@@QAE@PAVbtOverlappingPairCache@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 18 error LNK2001: unresolved external symbol "public: void __thiscall btDiscreteDynamicsWorld::synchronizeSingleMotionState(class btRigidBody *)" (?synchronizeSingleMotionState@btDiscreteDynamicsWorld@@QAEXPAVbtRigidBody@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 19 error LNK2001: unresolved external symbol "public: __thiscall btCollisionDispatcher::btCollisionDispatcher(class btCollisionConfiguration *)" (??0btCollisionDispatcher@@QAE@PAVbtCollisionConfiguration@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 20 error LNK2001: unresolved external symbol "void * __cdecl btAlignedAllocInternal(unsigned int,int)" (?btAlignedAllocInternal@@YAPAXIH@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 21 error LNK2001: unresolved external symbol "public: void __thiscall btSoftRigidDynamicsWorld::removeSoftBody(class btSoftBody *)" (?removeSoftBody@btSoftRigidDynamicsWorld@@QAEXPAVbtSoftBody@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 22 error LNK2001: unresolved external symbol "public: void __thiscall btSoftRigidDynamicsWorld::addSoftBody(class btSoftBody *,short,short)" (?addSoftBody@btSoftRigidDynamicsWorld@@QAEXPAVbtSoftBody@@FF@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 23 error LNK2001: unresolved external symbol "public: __thiscall btSoftRigidDynamicsWorld::btSoftRigidDynamicsWorld(class btDispatcher *,class btBroadphaseInterface *,class btConstraintSolver *,class btCollisionConfiguration *,class btSoftBodySolver *)" (??0btSoftRigidDynamicsWorld@@QAE@PAVbtDispatcher@@PAVbtBroadphaseInterface@@PAVbtConstraintSolver@@PAVbtCollisionConfiguration@@PAVbtSoftBodySolver@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 24 error LNK2001: unresolved external symbol "public: __thiscall btSoftBodyRigidBodyCollisionConfiguration::btSoftBodyRigidBodyCollisionConfiguration(struct btDefaultCollisionConstructionInfo const &)" (??0btSoftBodyRigidBodyCollisionConfiguration@@QAE@ABUbtDefaultCollisionConstructionInfo@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 25 error LNK2001: unresolved external symbol "public: __thiscall btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver(void)" (??0btSequentialImpulseConstraintSolver@@QAE@XZ) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 26 error LNK2001: unresolved external symbol "void __cdecl btAlignedFreeInternal(void *)" (?btAlignedFreeInternal@@YAXPAX@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(bulletworld.obj)
Error 27 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::transform(class btTransform const &)" (?transform@btSoftBody@@QAEXABVbtTransform@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(collisionobject.obj)
Error 28 error LNK2001: unresolved external symbol "public: void __thiscall btCollisionObject::activate(bool)" (?activate@btCollisionObject@@QAEX_N@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(collisionobject.obj)
Error 29 error LNK2001: unresolved external symbol "public: void __thiscall btCollisionObject::forceActivationState(int)" (?forceActivationState@btCollisionObject@@QAEXH@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(collisionobject.obj)
Error 30 error LNK2001: unresolved external symbol "public: void __thiscall btCollisionObject::setActivationState(int)" (?setActivationState@btCollisionObject@@QAEXH@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(collisionobject.obj)
Error 31 error LNK2001: unresolved external symbol "public: void __thiscall btRaycastVehicle::setBrake(float,int)" (?setBrake@btRaycastVehicle@@QAEXMH@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 32 error LNK2001: unresolved external symbol "public: struct btWheelInfo & __thiscall btRaycastVehicle::getWheelInfo(int)" (?getWheelInfo@btRaycastVehicle@@QAEAAUbtWheelInfo@@H@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 33 error LNK2001: unresolved external symbol "public: struct btWheelInfo & __thiscall btRaycastVehicle::addWheel(class btVector3 const &,class btVector3 const &,class btVector3 const &,float,float,class btRaycastVehicle::btVehicleTuning const &,bool)" (?addWheel@btRaycastVehicle@@QAEAAUbtWheelInfo@@ABVbtVector3@@00MMABVbtVehicleTuning@1@_N@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 34 error LNK2001: unresolved external symbol "public: void __thiscall btRaycastVehicle::updateWheelTransform(int,bool)" (?updateWheelTransform@btRaycastVehicle@@QAEXH_N@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 35 error LNK2001: unresolved external symbol "public: void __thiscall btRaycastVehicle::applyEngineForce(float,int)" (?applyEngineForce@btRaycastVehicle@@QAEXMH@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 36 error LNK2001: unresolved external symbol "public: void __thiscall btRaycastVehicle::setSteeringValue(float,int)" (?setSteeringValue@btRaycastVehicle@@QAEXMH@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 37 error LNK2001: unresolved external symbol "public: void __thiscall btRaycastVehicle::resetSuspension(void)" (?resetSuspension@btRaycastVehicle@@QAEXXZ) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 38 error LNK2001: unresolved external symbol "public: __thiscall btRaycastVehicle::btRaycastVehicle(class btRaycastVehicle::btVehicleTuning const &,class btRigidBody *,struct btVehicleRaycaster *)" (??0btRaycastVehicle@@QAE@ABVbtVehicleTuning@0@PAVbtRigidBody@@PAUbtVehicleRaycaster@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(raycastvehicle.obj)
Error 39 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::randomizeConstraints(void)" (?randomizeConstraints@btSoftBody@@QAEXXZ) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 40 error LNK2001: unresolved external symbol "public: int __thiscall btSoftBody::generateBendingConstraints(int,struct btSoftBody::Material *)" (?generateBendingConstraints@btSoftBody@@QAEHHPAUMaterial@1@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 41 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::setPose(bool,bool)" (?setPose@btSoftBody@@QAEX_N0@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 42 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::scale(class btVector3 const &)" (?scale@btSoftBody@@QAEXABVbtVector3@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 43 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::setVolumeDensity(float)" (?setVolumeDensity@btSoftBody@@QAEXM@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 44 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::setVolumeMass(float)" (?setVolumeMass@btSoftBody@@QAEXM@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 45 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::setTotalDensity(float)" (?setTotalDensity@btSoftBody@@QAEXM@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 46 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::setTotalMass(float,bool)" (?setTotalMass@btSoftBody@@QAEXM_N@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 47 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::setVelocity(class btVector3 const &)" (?setVelocity@btSoftBody@@QAEXABVbtVector3@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 48 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::addVelocity(class btVector3 const &)" (?addVelocity@btSoftBody@@QAEXABVbtVector3@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 49 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::addForce(class btVector3 const &)" (?addForce@btSoftBody@@QAEXABVbtVector3@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 50 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::addForce(class btVector3 const &,int)" (?addForce@btSoftBody@@QAEXABVbtVector3@@H@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 51 error LNK2001: unresolved external symbol "public: void __thiscall btSoftBody::appendAnchor(int,class btRigidBody *,bool)" (?appendAnchor@btSoftBody@@QAEXHPAVbtRigidBody@@_N@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 52 error LNK2001: unresolved external symbol "public: bool __thiscall btSoftBody::checkLink(int,int)const " (?checkLink@btSoftBody@@QBE_NHH@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 53 error LNK2001: unresolved external symbol "public: static class btSoftBody * __cdecl btSoftBodyHelpers::CreateFromTriMesh(struct btSoftBodyWorldInfo &,float const *,int const *,int,bool)" (?CreateFromTriMesh@btSoftBodyHelpers@@SAPAVbtSoftBody@@AAUbtSoftBodyWorldInfo@@PBMPBHH_N@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(softbody.obj)
Error 54 error LNK2001: unresolved external symbol "bool gDisableDeactivation" (?gDisableDeactivation@@3_NA) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 55 error LNK2001: unresolved external symbol "float gDeactivationTime" (?gDeactivationTime@@3MA) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 56 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::getAabb(class btVector3 &,class btVector3 &)const " (?getAabb@btRigidBody@@QBEXAAVbtVector3@@0@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 57 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::updateInertiaTensor(void)" (?updateInertiaTensor@btRigidBody@@QAEXXZ) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 58 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::integrateVelocities(float)" (?integrateVelocities@btRigidBody@@QAEXM@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 59 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::setMassProps(float,class btVector3 const &)" (?setMassProps@btRigidBody@@QAEXMABVbtVector3@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 60 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::applyDamping(float)" (?applyDamping@btRigidBody@@QAEXM@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 61 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::setDamping(float,float)" (?setDamping@btRigidBody@@QAEXMM@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 62 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::setGravity(class btVector3 const &)" (?setGravity@btRigidBody@@QAEXABVbtVector3@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 63 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::applyGravity(void)" (?applyGravity@btRigidBody@@QAEXXZ) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 64 error LNK2001: unresolved external symbol "public: void __thiscall btRigidBody::saveKinematicState(float)" (?saveKinematicState@btRigidBody@@QAEXM@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
Error 65 error LNK2001: unresolved external symbol "public: __thiscall btRigidBody::btRigidBody(float,class btMotionState *,class btCollisionShape *,class btVector3 const &)" (??0btRigidBody@@QAE@MPAVbtMotionState@@PAVbtCollisionShape@@ABVbtVector3@@@Z) C:\Users\adam\documents\visual studio 2010\Projects\RedNovember\RedNovember\irrbullet.lib(rigidbody.obj)
physicmanager.cpp
Code: Select all
void PhysicsManager::initialize()
{
world = createIrrBulletWorld(device, true, true);
world->setDebugMode(EPDM_DrawAabb |
EPDM_DrawContactPoints);
world->setGravity(vector3df(0,-9.8,0));
}
void PhysicsManager::StepPhysics()
{
// Step the simulation with our delta time
world->stepSimulation(DeltaTime*0.001f, 120);
world->debugDrawWorld(true);
// This call will draw the technical properties of the physics simulation
// to the GUI environment.
world->debugDrawProperties(true);
}
void PhysicsManager::ShutdownPhysics()
{
delete world;
}