[SOLVED] unresolved External symbol error

hvalola

06-06-2013 06:20:37

hi

when i compile my project
there are some linking errors
unresolved external symbol "public: __thiscall OgreBulletDynamics::DynamicsWorld::DynamicsWorld(class Ogre::SceneManager *,class Ogre::AxisAlignedBox const &,class Ogre::Vector3 const &,bool,bool,unsigned int)" (??0DynamicsWorld@OgreBulletDynamics@@QAE@PAVSceneManager@Ogre@@ABVAxisAlignedBox@3@ABVVector3@3@_N3I@Z)
1>VidusayuraClient.obj : error LNK2001: unresolved external symbol "public: void __thiscall OgreBulletCollisions::DebugDrawer::setDrawWireframe(bool)" (?setDrawWireframe@DebugDrawer@OgreBulletCollisions@@QAEX_N@Z)
error LNK2001: unresolved external symbol "public: __thiscall OgreBulletCollisions::DebugDrawer::DebugDrawer(void)" (??0DebugDrawer@OgreBulletCollisions@@QAE@XZ)
: error LNK2001: unresolved external symbol "public: void __thiscall OgreBulletCollisions::CollisionsWorld::setDebugDrawer(class OgreBulletCollisions::DebugDrawer *)" (?setDebugDrawer@CollisionsWorld@OgreBulletCollisions@@QAEXPAVDebugDrawer@2@@Z)
error LNK2001: unresolved external symbol "public: void __thiscall OgreBulletCollisions::CollisionsWorld::setShowDebugShapes(bool)" (?setShowDebugShapes@CollisionsWorld@OgreBulletCollisions@@QAEX_N@Z)

OgreBullet compiles without errors and i linked lib files according to the http://www.ogre3d.org/tikiwiki/OgreBull ... torial%202 tutorial

what is this error please help

AlexeyKnyshev

06-06-2013 12:29:27

Did you build OgreBullet from svn (vcproj) or Bitbucket (git) based on CMake?

hvalola

06-06-2013 15:16:11

I used svn vc project not the Bitbucket
is there a diffrence ?

dermont

06-06-2013 15:23:52

Are you linking against OgreBulletCol (or whatever the windows equivalent name is)?

AlexeyKnyshev

06-06-2013 21:34:21

Yup! OgreBullet CMake find module, which sets right linking options. I'm maintainer of bitbucket repo and can help you to come up with this fork.

hvalola

07-06-2013 11:27:42

I rebuild and link again
but this time only one link error

greBulletCollisions.lib(OgreBulletCollisionsDebugDrawer.obj) : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall Ogre::MovableObject::removeQueryFlags(unsigned long)" (__imp_?removeQueryFlags@MovableObject@Ogre@@UAEXK@Z)

AlexeyKnyshev

07-06-2013 12:14:28

How are you building OgreBullet? With CMake? Do you use CMake for you project?

hvalola

07-06-2013 14:44:06

My project do not use cmake other than to build library files
I use vc2010 ultimate to build my project

I tried to build bitbucket ogre bullet but i failed to build it
It asks for include paths but on bullet2.78 there is no include folder

AlexeyKnyshev

07-06-2013 16:25:36

My project do not use cmake other than to build library files
I use vc2010 ultimate to build my project

I tried to build bitbucket ogre bullet but i failed to build it
It asks for include paths but on bullet2.78 there is no include folder


It's due to you didn't build bullet with cmake.

hvalola

08-06-2013 18:24:17

To correct my issue do I have to build OgreBullet as well as Bullet too ? :(

Is there any other way

AlexeyKnyshev

08-06-2013 18:43:26

As you wish. The problem source is that you haven't right configured build environment. Common problem for windows programmer.

hvalola

10-06-2013 08:34:50

You are correct alex
i build bullet from source and rebuild ogreBullet
it works fine Thanks :)

AlexeyKnyshev

10-06-2013 10:43:41

You are correct alex
i build bullet from source and rebuild ogreBullet
it works fine Thanks :)


Good job! Mark your topic as [Solved] before old name. And don't forget about giving kudos!

Best regards!