vs2003 build error

futnuh

01-03-2007 19:48:30

Trying to compile the cvs version of ogreode, I was getting the following linking problem.


------ Build started: Project: OgreOde_Core, Configuration: Release Win32 ------
...

Linking...
Creating library ..\..\lib\Release/OgreOde_Core.lib and object ..\..\lib\Release/OgreOde_Core.exp
OgreOdeGeometry.obj : error LNK2001: unresolved external symbol "public: void __thiscall OgreOde::DebugContact::update(class OgreOde::Contact * const)" (?update@DebugContact@OgreOde@@QAEXQAVContact@2@@Z)
OgreOdeGeometry.obj : error LNK2001: unresolved external symbol "public: void __thiscall OgreOde::DebugContact::setEnabled(bool)" (?setEnabled@DebugContact@OgreOde@@QAEX_N@Z)
OgreOdeGeometry.obj : error LNK2001: unresolved external symbol "public: bool __thiscall OgreOde::DebugContact::isEnabled(void)const " (?isEnabled@DebugContact@OgreOde@@QBE_NXZ)
OgreOdeGeometry.obj : error LNK2001: unresolved external symbol "public: __thiscall OgreOde::DebugContact::~DebugContact(void)" (??1DebugContact@OgreOde@@QAE@XZ)
OgreOdeGeometry.obj : error LNK2001: unresolved external symbol "public: __thiscall OgreOde::DebugContact::DebugContact(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class OgreOde::World *)" (??0DebugContact@OgreOde@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVWorld@1@@Z)
..\..\lib\Release/OgreOde_Core.dll : fatal error LNK1120: 5 unresolved externals


OgreOdeDebugContact.cpp needs to be added to the source files in the OgreOde_Core project ...

skinhat

13-06-2007 15:31:45

Thanks. Saved me a bit of time seeing your post. Was getting the same errors.

trevor_r

11-09-2007 09:44:27

I use the vs2005 build and I'm getting exactly the same error during compilation! But the OgreOdeDebugContact.cpp already is added to the source files.

I'm stuck with this error, what to do?

Crog

19-10-2007 22:00:04

Hiya, I just grabed the latest version and OgreODE Core projects is missing OgreOdeDebugContact.cpp. Adding it results in the following errors....

1>OgreOdeDebugContact.cpp
1>..\..\src\OgreOdeDebugContact.cpp(186) : error C2660: 'Ogre::Material::setDepthBias' : function does not take 1 arguments
1>..\..\src\OgreOdeDebugContact.cpp(257) : error C2660: 'Ogre::Material::setDepthBias' : function does not take 1 arguments
1>..\..\src\OgreOdeDebugContact.cpp(386) : error C2660: 'Ogre::Font::getGlyphTexCoords' : function does not take 5 arguments

To me it looks like OgreOde doesn't work with the latest Ogre?