OgreNewt (not Newton) linker problem

Ultima2876

29-10-2008 15:25:09

1>PhysicsComponent.obj : error LNK2019: unresolved external symbol "public: void __thiscall OgreNewt::Body::setCustomTransformCallback(class boost::function<void __cdecl(class OgreNewt::Body *,class Ogre::Quaternion const &,class Ogre::Vector3 const &)>)" (?setCustomTransformCallback@Body@OgreNewt@@QAEXV?$function@$$A6AXPAVBody@OgreNewt@@ABVQuaternion@Ogre@@ABVVector3@4@@Z@boost@@@Z) referenced in function "public: void __thiscall OgreNewt::Body::setCustomTransformCallback<class PhysicsComponent>(class boost::function<void __cdecl(class PhysicsComponent *,class OgreNewt::Body *,class Ogre::Quaternion const &,class Ogre::Vector3 const &)>,class PhysicsComponent *)" (??$setCustomTransformCallback@VPhysicsComponent@@@Body@OgreNewt@@QAEXV?$function@$$A6AXPAVPhysicsComponent@@PAVBody@OgreNewt@@ABVQuaternion@Ogre@@ABVVector3@5@@Z@boost@@PAVPhysicsComponent@@@Z)
1>..\bin\debug\OgreTest.exe : fatal error LNK1120: 1 unresolved externals


I get this error when trying to use a custom transform callback... I have had custom transform callbacks working in the same project before, but I may have changed something since which might've screwed things up, and now I have no idea what's wrong or how to fix it. If there were more unresolved externals I'd consider it being a missing library or something, but I'm baffled because it's just the one.

Any ideas? Thanks :P