Hi, I'm trying to build my first osg project. I used the link (http://dwightdesign.com/2009/05/installing-openscenegraph-280/) to configure my system, everything went well, but I'm having some problems:
[code] Compiling... Main.cpp 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' Generating Code... Linking... Creating library C:\OSG\OSGDefaultProject\Debug\OSGDefaultProject.lib and object C:\OSG\OSGDefaultProject\Debug\OSGDefaultProject.exp LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library Main.obj : warning LNK4217: locally defined symbol ?setst...@?$basic_ios@du?$char_tra...@d@std@@@std@@qaex...@z (public: void __thiscall std::basic_ios<char,struct std::char_traits<char> >::setstate(int,bool)) imported in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::operator<<<struct std::char_traits<char> >(class std::basic_ostream<char,struct std::char_traits<char> > &,char const *)" (??$?6u?$char_tra...@d@std@@@std@@yaaav?$basic_ostr...@du?$char_traits@d...@std@@@0...@aav10@p...@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) DoomLikeManipulator.obj : error LNK2019: unresolved external symbol __CrtDbgReportW referenced in function "public: struct osgUtil::LineSegmentIntersector::Intersection const & __thiscall std::_Tree<class std::_Tset_traits<struct osgUtil::LineSegmentIntersector::Intersection,struct std::less<struct osgUtil::LineSegmentIntersector::Intersection>,class std::allocator<struct osgUtil::LineSegmentIntersector::Intersection>,1> >::const_iterator::operator*(void)const " (??dconst_itera...@?$_tree@v?$_tset_tra...@uintersection@linesegmentintersec...@osgutil@@u?$l...@uintersection@linesegmentintersec...@osgutil@@@std@@v?$alloca...@uintersection@linesegmentintersec...@osgutil@@@5...@$00@std@@@std@@qbeabuintersect...@linesegmentintersector@osgUtil@@XZ) Main.obj : error LNK2001: unresolved external symbol __CrtDbgReportW libcpmtd.lib(stdthrow.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW libcpmtd.lib(cout.obj) : error LNK2001: unresolved external symbol __CrtDbgReportW Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::flush(void)" (__imp_?fl...@?$basic_ostream@du?$char_tra...@d@std@@@std@@qaeaa...@xz) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?e...@std@@yaaav?$basic_ostr...@du?$char_traits@d...@std@@@1...@aav21@@Z) Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::put(char)" (__imp_?...@?$basic_ostream@du?$char_tra...@d@std@@@std@@qaeaa...@d@Z) referenced in function "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::endl(class std::basic_ostream<char,struct std::char_traits<char> > &)" (?e...@std@@yaaav?$basic_ostr...@du?$char_traits@d...@std@@@1...@aav21@@Z) Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::basic_ostream<char,struct std::char_traits<char> >::_Osfx(void)" (__imp_?_o...@?$basic_ostream@du?$char_tra...@d@std@@@std@@QAEXXZ) referenced in function "public: __thiscall std::basic_ostream<char,struct std::char_traits<char> >::sentry::~sentry(void)" (??1sen...@?$basic_ostream@du?$char_tra...@d@std@@@std@@q...@xz) Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class std::basic_ostream<char,struct std::char_traits<char> > & __thiscall std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (__imp_??6?$basic_ostr...@du?$char_traits@d...@std@@@std@@qaeaa...@p6aaav01@AAV01@@z...@z) referenced in function _main libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (?...@yapaxiabu_debugheaptag_t@std@@p...@z) libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (?...@yaxpaxabu_debugheaptag_t@std@@p...@z) libcpmtd.lib(_tolower.obj) : error LNK2019: unresolved external symbol __calloc_dbg referenced in function __Getctype C:\OSG\OSGDefaultProject\Debug\OSGDefaultProject.exe : fatal error LNK1120: 13 unresolved externals Build log was saved at "file://c:\OSG\OSGDefaultProject\OSGDefaultProject\Debug\BuildLog.htm" OSGDefaultProject - 17 error(s), 26 warning(s) ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== [\code] What is wrong? Thank you! Cheers, Alex ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=16883#16883 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org