Linking Errors

Post Reply
Vipin
Posts: 3
Joined: Tue Nov 04, 2014 8:18 am

Linking Errors

Post by Vipin »

Hi,
I used Bullet3-Bullet 2.83 version to build the library. I built the library using Cmake and the platform I chose was VS 12 2013.
I could generate the libraries Bullet3Collisions_Debug,Bullet3Collisions_Debug and LinearMath_Debug. Then I linked the libraries to the project and tried to run the hallo world program in the Demo folder.
I ran the program in debug mode and I was getting 24 Linker problems as given below
  • Error 24 error LNK1120: 23 unresolved externals E:\Programming\BulletDevelopmentLatest\BulletTestApp\Debug\BulletTestApp.exe BulletTestApp
    Error 10 error LNK2001: unresolved external symbol "public: virtual class btVector3 __thiscall btConvexInternalShape::localGetSupportingVertex(class btVector3 const &)const " (?localGetSupportingVertex@btConvexInternalShape@@UBE?AVbtVector3@@ABV2@@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 14 error LNK2001: unresolved external symbol "public: virtual class btVector3 __thiscall btSphereShape::localGetSupportingVertex(class btVector3 const &)const " (?localGetSupportingVertex@btSphereShape@@UBE?AVbtVector3@@ABV2@@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 15 error LNK2001: unresolved external symbol "public: virtual class btVector3 __thiscall btSphereShape::localGetSupportingVertexWithoutMargin(class btVector3 const &)const " (?localGetSupportingVertexWithoutMargin@btSphereShape@@UBE?AVbtVector3@@ABV2@@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 3 error LNK2001: unresolved external symbol "public: virtual float __thiscall btCollisionShape::getAngularMotionDisc(void)const " (?getAngularMotionDisc@btCollisionShape@@UBEMXZ) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 4 error LNK2001: unresolved external symbol "public: virtual float __thiscall btCollisionShape::getContactBreakingThreshold(float)const " (?getContactBreakingThreshold@btCollisionShape@@UBEMM@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 2 error LNK2001: unresolved external symbol "public: virtual void __thiscall btCollisionShape::getBoundingSphere(class btVector3 &,float &)const " (?getBoundingSphere@btCollisionShape@@UBEXAAVbtVector3@@AAM@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 6 error LNK2001: unresolved external symbol "public: virtual void __thiscall btCollisionShape::serializeSingleShape(class btSerializer *)const " (?serializeSingleShape@btCollisionShape@@UBEXPAVbtSerializer@@@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 11 error LNK2001: unresolved external symbol "public: virtual void __thiscall btConvexInternalShape::getAabbSlow(class btTransform const &,class btVector3 &,class btVector3 &)const " (?getAabbSlow@btConvexInternalShape@@UBEXABVbtTransform@@AAVbtVector3@@1@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 12 error LNK2001: unresolved external symbol "public: virtual void __thiscall btConvexInternalShape::setLocalScaling(class btVector3 const &)" (?setLocalScaling@btConvexInternalShape@@UAEXABVbtVector3@@@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 8 error LNK2001: unresolved external symbol "public: virtual void __thiscall btConvexShape::project(class btTransform const &,class btVector3 const &,float &,float &)const " (?project@btConvexShape@@UBEXABVbtTransform@@ABVbtVector3@@AAM2@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 16 error LNK2001: unresolved external symbol "public: virtual void __thiscall btSphereShape::batchedUnitVectorGetSupportingVertexWithoutMargin(class btVector3 const *,class btVector3 *,int)const " (?batchedUnitVectorGetSupportingVertexWithoutMargin@btSphereShape@@UBEXPBVbtVector3@@PAV2@H@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 17 error LNK2001: unresolved external symbol "public: virtual void __thiscall btSphereShape::calculateLocalInertia(float,class btVector3 &)const " (?calculateLocalInertia@btSphereShape@@UBEXMAAVbtVector3@@@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 18 error LNK2001: unresolved external symbol "public: virtual void __thiscall btSphereShape::getAabb(class btTransform const &,class btVector3 &,class btVector3 &)const " (?getAabb@btSphereShape@@UBEXABVbtTransform@@AAVbtVector3@@1@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 9 error LNK2019: unresolved external symbol "protected: __thiscall btConvexInternalShape::btConvexInternalShape(void)" (??0btConvexInternalShape@@IAE@XZ) referenced in function "public: __thiscall btSphereShape::btSphereShape(float)" (??0btSphereShape@@QAE@M@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 13 error LNK2019: unresolved external symbol "public: __thiscall btBoxShape::btBoxShape(class btVector3 const &)" (??0btBoxShape@@QAE@ABVbtVector3@@@Z) referenced in function _main E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 1 error LNK2019: unresolved external symbol "public: __thiscall btCollisionDispatcher::btCollisionDispatcher(class btCollisionConfiguration *)" (??0btCollisionDispatcher@@QAE@PAVbtCollisionConfiguration@@@Z) referenced in function _main E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 20 error LNK2019: unresolved external symbol "public: __thiscall btDbvtBroadphase::btDbvtBroadphase(class btOverlappingPairCache *)" (??0btDbvtBroadphase@@QAE@PAVbtOverlappingPairCache@@@Z) referenced in function _main E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 19 error LNK2019: unresolved external symbol "public: __thiscall btDefaultCollisionConfiguration::btDefaultCollisionConfiguration(struct btDefaultCollisionConstructionInfo const &)" (??0btDefaultCollisionConfiguration@@QAE@ABUbtDefaultCollisionConstructionInfo@@@Z) referenced in function _main E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 21 error LNK2019: unresolved external symbol "public: __thiscall btDiscreteDynamicsWorld::btDiscreteDynamicsWorld(class btDispatcher *,class btBroadphaseInterface *,class btConstraintSolver *,class btCollisionConfiguration *)" (??0btDiscreteDynamicsWorld@@QAE@PAVbtDispatcher@@PAVbtBroadphaseInterface@@PAVbtConstraintSolver@@PAVbtCollisionConfiguration@@@Z) referenced in function _main E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 22 error LNK2019: unresolved external symbol "public: __thiscall btRigidBody::btRigidBody(struct btRigidBody::btRigidBodyConstructionInfo const &)" (??0btRigidBody@@QAE@ABUbtRigidBodyConstructionInfo@0@@Z) referenced in function _main E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 23 error LNK2019: unresolved external symbol "public: __thiscall btSequentialImpulseConstraintSolver::btSequentialImpulseConstraintSolver(void)" (??0btSequentialImpulseConstraintSolver@@QAE@XZ) referenced in function _main E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 7 error LNK2019: unresolved external symbol "public: virtual __thiscall btConvexShape::~btConvexShape(void)" (??1btConvexShape@@UAE@XZ) referenced in function "public: virtual __thiscall btConvexInternalShape::~btConvexInternalShape(void)" (??1btConvexInternalShape@@UAE@XZ) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
    Error 5 error LNK2019: unresolved external symbol "public: virtual char const * __thiscall btCollisionShape::serialize(void *,class btSerializer *)const " (?serialize@btCollisionShape@@UBEPBDPAXPAVbtSerializer@@@Z) referenced in function "public: virtual char const * __thiscall btConvexInternalShape::serialize(void *,class btSerializer *)const " (?serialize@btConvexInternalShape@@UBEPBDPAXPAVbtSerializer@@@Z) E:\Programming\BulletDevelopmentLatest\BulletTestApp\BulletTestApp\BulletTestApp.obj BulletTestApp
Can anyone tell me how to solve this?
Basroil
Posts: 463
Joined: Fri Nov 30, 2012 4:50 am

Re: Linking Errors

Post by Basroil »

Looks like linking wasn't set up properly. Check the build dependencies again, and make sure you don't somehow have inclusions missing
Post Reply