Hi, Now my osgviewer.cpp is working fine. However when I add one other code the following error is:
[code] ------ Rebuild All started: Project: OSGDefaultProject, Configuration: Release Win32 ------ Deleting intermediate and output files for project 'OSGDefaultProject', configuration 'Release|Win32' Compiling... DoomLikeManipulator.cpp .\DoomLikeManipulator.cpp(28) : warning C4273: 'osgGA::DoomLikeManipulator::DoomLikeManipulator' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(56) : see previous definition of '{ctor}' .\DoomLikeManipulator.cpp(53) : warning C4273: 'osgGA::DoomLikeManipulator::~DoomLikeManipulator' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(126) : see previous definition of '{dtor}' .\DoomLikeManipulator.cpp(57) : warning C4273: 'osgGA::DoomLikeManipulator::intersect' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(128) : see previous definition of 'intersect' .\DoomLikeManipulator.cpp(74) : warning C4273: 'osgGA::DoomLikeManipulator::setNode' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(82) : see previous definition of 'setNode' .\DoomLikeManipulator.cpp(84) : warning C4273: 'osgGA::DoomLikeManipulator::getNode' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(85) : see previous definition of 'getNode' .\DoomLikeManipulator.cpp(89) : warning C4273: 'osgGA::DoomLikeManipulator::getNode' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(88) : see previous definition of 'getNode' .\DoomLikeManipulator.cpp(95) : warning C4273: 'osgGA::DoomLikeManipulator::className' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(61) : see previous definition of 'className' .\DoomLikeManipulator.cpp(100) : warning C4273: 'osgGA::DoomLikeManipulator::setByMatrix' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(66) : see previous definition of 'setByMatrix' .\DoomLikeManipulator.cpp(113) : warning C4273: 'osgGA::DoomLikeManipulator::setByInverseMatrix' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(71) : see previous definition of 'setByInverseMatrix' .\DoomLikeManipulator.cpp(126) : warning C4273: 'osgGA::DoomLikeManipulator::getMatrix' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(74) : see previous definition of 'getMatrix' .\DoomLikeManipulator.cpp(131) : warning C4273: 'osgGA::DoomLikeManipulator::getInverseMatrix' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(77) : see previous definition of 'getInverseMatrix' .\DoomLikeManipulator.cpp(136) : warning C4273: 'osgGA::DoomLikeManipulator::computeHomePosition' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(92) : see previous definition of 'computeHomePosition' .\DoomLikeManipulator.cpp(182) : warning C4273: 'osgGA::DoomLikeManipulator::init' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(98) : see previous definition of 'init' .\DoomLikeManipulator.cpp(189) : warning C4273: 'osgGA::DoomLikeManipulator::home' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(95) : see previous definition of 'home' .\DoomLikeManipulator.cpp(197) : warning C4273: 'osgGA::DoomLikeManipulator::home' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(96) : see previous definition of 'home' .\DoomLikeManipulator.cpp(216) : warning C4273: 'osgGA::DoomLikeManipulator::handle' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(101) : see previous definition of 'handle' .\DoomLikeManipulator.cpp(264) : warning C4273: 'osgGA::DoomLikeManipulator::getUsage' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(104) : see previous definition of 'getUsage' .\DoomLikeManipulator.cpp(280) : warning C4273: 'osgGA::DoomLikeManipulator::_keyUp' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(163) : see previous definition of '_keyUp' .\DoomLikeManipulator.cpp(307) : warning C4273: 'osgGA::DoomLikeManipulator::_keyDown' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(162) : see previous definition of '_keyDown' .\DoomLikeManipulator.cpp(395) : warning C4273: 'osgGA::DoomLikeManipulator::_move' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(164) : see previous definition of '_move' .\DoomLikeManipulator.cpp(432) : warning C4273: 'osgGA::DoomLikeManipulator::_frame' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(165) : see previous definition of '_frame' .\DoomLikeManipulator.cpp(473) : warning C4273: 'osgGA::DoomLikeManipulator::_adjustPosition' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(167) : see previous definition of '_adjustPosition' .\DoomLikeManipulator.cpp(513) : warning C4273: 'osgGA::DoomLikeManipulator::_stop' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(161) : see previous definition of '_stop' .\DoomLikeManipulator.cpp(520) : warning C4273: 'osgGA::DoomLikeManipulator::getCurrentPositionAsLookAt' : inconsistent dll linkage c:\osg\osgdefaultproject\osgdefaultproject\DoomLikeManipulator.h(107) : see previous definition of 'getCurrentPositionAsLookAt' osgviewer.cpp Generating Code... Linking... Creating library C:\OSG\OSGDefaultProject\Release\OSGDefaultProject.lib and object C:\OSG\OSGDefaultProject\Release\OSGDefaultProject.exp osgviewer.obj : warning LNK4217: locally defined symbol ??0doomlikemanipula...@osgga@@q...@xz (public: __thiscall osgGA::DoomLikeManipulator::DoomLikeManipulator(void)) imported in function _main osgviewer.obj : warning LNK4217: locally defined symbol ?classn...@doomlikemanipulator@osgGA@@UBEPBDXZ (public: virtual char const * __thiscall osgGA::DoomLikeManipulator::className(void)const ) imported in function "[thunk]:public: virtual char const * __thiscall osgGA::DoomLikeManipulator::className`vtordisp{4294967292,0}' (void)const " (?classn...@doomlikemanipulator@osgGA@@$4ppppp...@a@BEPBDXZ) osgviewer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) protected: void __thiscall osgGA::DoomLikeManipulator::`vbase destructor'(void)" (__imp_??_ddoomlikemanipula...@osgga@@IAEXXZ) referenced in function "protected: virtual void * __thiscall osgGA::DoomLikeManipulator::`scalar deleting destructor'(unsigned int)" (??_gdoomlikemanipula...@osgga@@maep...@z) DoomLikeManipulator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const osgGA::DoomLikeManipulator::`vftable'{for `osg::Object'}" (__imp_??_7doomlikemanipula...@osgga@@6bobj...@osg@@@) referenced in function "public: __thiscall osgGA::DoomLikeManipulator::DoomLikeManipulator(void)" (??0doomlikemanipula...@osgga@@q...@xz) DoomLikeManipulator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const osgGA::DoomLikeManipulator::`vftable'{for `osg::Drawable::EventCallback'}" (__imp_??_7doomlikemanipula...@osgga@@6beventcallb...@drawable@osg@@@) referenced in function "public: __thiscall osgGA::DoomLikeManipulator::DoomLikeManipulator(void)" (??0doomlikemanipula...@osgga@@q...@xz) DoomLikeManipulator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const osgGA::DoomLikeManipulator::`vftable'{for `osg::NodeCallback'}" (__imp_??_7doomlikemanipula...@osgga@@6bnodecallb...@osg@@@) referenced in function "public: __thiscall osgGA::DoomLikeManipulator::DoomLikeManipulator(void)" (??0doomlikemanipula...@osgga@@q...@xz) DoomLikeManipulator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const osgGA::DoomLikeManipulator::`vbtable'{for `osg::Drawable::EventCallback'}" (__imp_??_8doomlikemanipula...@osgga@@7beventcallb...@drawable@osg@@@) referenced in function "public: __thiscall osgGA::DoomLikeManipulator::DoomLikeManipulator(void)" (??0doomlikemanipula...@osgga@@q...@xz) DoomLikeManipulator.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const osgGA::DoomLikeManipulator::`vbtable'{for `osg::NodeCallback'}" (__imp_??_8doomlikemanipula...@osgga@@7bnodecallb...@osg@@@) referenced in function "public: __thiscall osgGA::DoomLikeManipulator::DoomLikeManipulator(void)" (??0doomlikemanipula...@osgga@@q...@xz) C:\OSG\OSGDefaultProject\Release\OSGDefaultProject.exe : fatal error LNK1120: 6 unresolved externals Build log was saved at "file://c:\OSG\OSGDefaultProject\OSGDefaultProject\Release\BuildLog.htm" OSGDefaultProject - 7 error(s), 26 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== [\code] Do I need to do anything more than just add the DoomLikeManipulator.h? Thank you! Cheers, Alex ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16892#16892 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org