Lin3d Linking error

ricardo_arango

04-02-2006 00:42:44

This is my error.

Anyone gets this??

OgreNewt_Debugger.obj : error LNK2019: unresolved external symbol "public: void __thiscall Line3D::drawLines(void)" (?drawLines@Line3D@@QAEXXZ) referenced in function "public: void __thiscall OgreNewt::Debugger::showLines(class OgreNewt::World *)" (?showLines@Debugger@OgreNewt@@QAEXPAVWorld@2@@Z)
OgreNewt_Debugger.obj : error LNK2019: unresolved external symbol "public: __thiscall Line3D::Line3D(void)" (??0Line3D@@QAE@XZ) referenced in function "public: void __thiscall OgreNewt::Debugger::showLines(class OgreNewt::World *)" (?showLines@Debugger@OgreNewt@@QAEXPAVWorld@2@@Z)
OgreNewt_Debugger.obj : error LNK2019: unresolved external symbol "public: void __thiscall Line3D::addPoint(class Ogre::Vector3 const &)" (?addPoint@Line3D@@QAEXABVVector3@Ogre@@@Z) referenced in function "private: static void __cdecl OgreNewt::Debugger::newtonPerPoly(struct NewtonBody const *,int,float const *,int)" (?newtonPerPoly@Debugger@OgreNewt@@CAXPBUNewtonBody@@HPBMH@Z)
lib\Debug_DLL/OgreNewt_Main_vc71_d.dll : fatal error LNK1120: 3 unresolved externals

ricardo_arango

04-02-2006 01:14:23

I know now...

I had to put this in the preprocessotr definitions, because I am using Dagon:

_OGRENEWT_DEBUGGER_DAGON,

that way it won'y use Line3D


I finally posted something useful.. :D

walaber

04-02-2006 01:32:23

or use the line3d version, but make sure to include (and compile) line3d.cpp with your project. you can find line3d.cpp in the OgreNewt/demos/include folder.