new own Application Object

bounci

07-07-2007 14:17:31

I want to create a new own ApplicationObject which is no ball or box.

Is there a possibility to do that and a tutorial somewhere how to do that?
I've found that thread:
http://www.ogre3d.org/phpBB2/viewtopic. ... 6f4e2718c6

It's out of date but I tried it.
Unfortunately it didn't work.
I got that results:

Warning 1 warning C4273: 'OgreRefApp::MyMesh::MyMesh' : inconsistent dll linkage h:\uni\da\source\tutorialssolution\tutorialsprojekt\samples\src\mymesh.cpp 8

Warning 2 warning C4273: 'OgreRefApp::MyMesh::~MyMesh' : inconsistent dll linkage h:\uni\da\source\tutorialssolution\tutorialsprojekt\samples\src\mymesh.cpp 17

Warning 3 warning C4273: 'OgreRefApp::MyMesh::setUp' : inconsistent dll linkage h:\uni\da\source\tutorialssolution\tutorialsprojekt\samples\src\mymesh.cpp 22

Error 4 error LNK2019: unresolved external symbol "__declspec(dllimport) public: class OgreRefApp::MyMesh * __thiscall OgreRefApp::World::createMesh(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,float,class Ogre::Vector3 const &,class Ogre::Quaternion const &)" (__imp_?createMesh@World@OgreRefApp@@QAEPAVMyMesh@2@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0MABVVector3@Ogre@@ABVQuaternion@7@@Z) referenced in function "protected: virtual void __thiscall BspCollisionApplication::createScene(void)" (?createScene@BspCollisionApplication@@MAEXXZ) BspCollision.obj

Error 5 error LNK2019: unresolved external symbol "__declspec(dllimport) const OgreRefApp::MyMesh::`vftable'" (__imp_??_7MyMesh@OgreRefApp@@6B@) referenced in function "public: __thiscall OgreRefApp::MyMesh::MyMesh(float,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class Ogre::Vector3)" (??0MyMesh@OgreRefApp@@QAE@MABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0VVector3@Ogre@@@Z) MyMesh.obj

Error 6 error LNK2019: unresolved external symbol _dBodyCreate referenced in function "public: __thiscall dBody::dBody(struct dxWorld *)" (??0dBody@@QAE@PAUdxWorld@@@Z) MyMesh.obj

Error 7 error LNK2019: unresolved external symbol _dBodySetData referenced in function "public: void __thiscall dBody::setData(void *)" (?setData@dBody@@QAEXPAX@Z) MyMesh.obj

Error 8 error LNK2019: unresolved external symbol _dCreateBox referenced in function "public: __thiscall dBox::dBox(struct dxSpace *,float,float,float)" (??0dBox@@QAE@PAUdxSpace@@MMM@Z) MyMesh.obj


So, is there anybody who knows what the problem is, what linkage error there could be?

bounci

07-07-2007 23:18:50

is it possible that I have to add something to the :
OgreOde_Prefab_d.dll ?

how do I do this?