Error LNK2001: unresolved external symbol

Dihensoeur

24-09-2010 13:36:50

Hi !
I'm newbie and I want to build a project with OgreBullet.
It's alright with Visual Studio Professionnal 2008, but when I want to compile the same project with Visual Studio Express 2008, then:

error LNK2001: unresolved external symbol "public: __thiscall OgreBulletDynamics::DynamicsWorld::DynamicsWorld(class Ogre::SceneManager *,class Ogre::AxisAlignedBox const &,class Ogre::Vector3 const &,bool)" (??0DynamicsWorld@OgreBulletDynamics@@QAE@PAVSceneManager@Ogre@@ABVAxisAlignedBox@3@ABVVector3@3@_N@Z)

All libs were been compiled with Express before and OgreBulletDynamics.lib is added in the project (if I remove it, then I have lot of unresolved external symbol).

Note: in the OgreBulletDynamics.lib (compiled with Express 2008), there is this symbol :

??0DynamicsWorld@OgreBulletDynamics@@QAE@PAVSceneManager@Ogre@@ABVAxisAlignedBox@3@ABVVector3@3@_N3I@Z

and in the OgreBulletDynamics.lib (compiled with Pro), there is the good symbol, but I can't use it (I'm rejected by Express because it's a compiled lib with Pro).
I try to use Express instead of Pro to distribute to friends (they have not Visual Pro).

Please, can you help me ?

Thanks you !!

Fish

24-09-2010 19:08:56

You need to make sure that all of your libraries, (Bullet, OgreBullet, and Ogre) are compiled with the same compiler suite.

- Fish

Dihensoeur

27-09-2010 10:09:56

Thanks you for you respond.
Yes, it does. That's why I don't understand this bug.

Dihensoeur

29-09-2010 09:58:10

problem solved, I have integrated all Ogre, Bullet and OgreBullet with Express.
Thanks you all.