I just updated OT/P/OSG this morning to current CVS. I built OT in VS8 without any issues. However, I encountered problems with Producer.
 
When loading the VS7 .sln file into VS 8, I get the message:
  Project file 'C:\Producer\VC++7\KeyboardMouseTest\KeyboardMouseTest.vcproj' could not be loaded.
  The project is either missing from the disk or access was denied.
 
I proceed with a batch build. Producer builds fine, but OsgViewer displays several compile warnings and linker warnings/errors:
 

------ Rebuild All started: Project: OsgViewer, Configuration: Debug Win32 ------

Deleting intermediate and output files for project 'OsgViewer', configuration 'Debug|Win32'

Compiling...

main.cpp

OsgSceneHandler.cpp

c:\producer\examples\osgviewer\osgscenehandler.cpp(53) : warning C4273: 'Producer::OsgSceneHandler::OsgSceneHandler' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(49) : see previous definition of '{ctor}'

c:\producer\examples\osgviewer\osgscenehandler.cpp(62) : warning C4273: 'Producer::OsgSceneHandler::setScene' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(57) : see previous definition of 'setScene'

c:\producer\examples\osgviewer\osgscenehandler.cpp(67) : warning C4273: 'Producer::OsgSceneHandler::getSceneBounds' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(59) : see previous definition of 'getSceneBounds'

c:\producer\examples\osgviewer\osgscenehandler.cpp(80) : warning C4273: 'Producer::OsgSceneHandler::getRootNode' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(61) : see previous definition of 'getRootNode'

c:\producer\examples\osgviewer\osgscenehandler.cpp(84) : warning C4273: 'Producer::OsgSceneHandler::getClearColor' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(69) : see previous definition of 'getClearColor'

c:\producer\examples\osgviewer\osgscenehandler.cpp(87) : warning C4273: 'Producer::OsgSceneHandler::update' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(53) : see previous definition of 'update'

c:\producer\examples\osgviewer\osgscenehandler.cpp(116) : warning C4273: 'Producer::OsgSceneHandler::cull' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(54) : see previous definition of 'cull'

c:\producer\examples\osgviewer\osgscenehandler.cpp(208) : warning C4273: 'Producer::OsgSceneHandler::draw' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(55) : see previous definition of 'draw'

c:\producer\examples\osgviewer\osgscenehandler.cpp(277) : warning C4273: 'Producer::OsgSceneHandler::flushDeletedGLObjects' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(63) : see previous definition of 'flushDeletedGLObjects'

c:\producer\examples\osgviewer\osgscenehandler.cpp(301) : warning C4273: 'Producer::OsgSceneHandler::_setDefaults' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(126) : see previous definition of '_setDefaults'

c:\producer\examples\osgviewer\osgscenehandler.cpp(398) : warning C4273: 'Producer::OsgSceneHandler::_cullStage' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(129) : see previous definition of '_cullStage'

c:\producer\examples\osgviewer\osgscenehandler.cpp(560) : warning C4273: 'Producer::OsgSceneHandler::getViewport' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(65) : see previous definition of 'getViewport'

c:\producer\examples\osgviewer\osgscenehandler.cpp(568) : warning C4273: 'Producer::OsgSceneHandler::setViewport' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(66) : see previous definition of 'setViewport'

c:\producer\examples\osgviewer\osgscenehandler.cpp(585) : warning C4273: 'Producer::OsgSceneHandler::_init' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(125) : see previous definition of '_init'

c:\producer\examples\osgviewer\osgscenehandler.cpp(627) : warning C4273: 'Producer::OsgSceneHandler::toggleLighting' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(71) : see previous definition of 'toggleLighting'

c:\producer\examples\osgviewer\osgscenehandler.cpp(636) : warning C4273: 'Producer::OsgSceneHandler::toggleTexturing' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(73) : see previous definition of 'toggleTexturing'

c:\producer\examples\osgviewer\osgscenehandler.cpp(651) : warning C4273: 'Producer::OsgSceneHandler::toggleWireframe' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(72) : see previous definition of 'toggleWireframe'

c:\producer\examples\osgviewer\osgscenehandler.cpp(668) : warning C4273: 'Producer::OsgSceneHandler::toggleBackfaceCulling' : inconsistent dll linkage

c:\producer\examples\osgviewer\osgscenehandler.h(74) : see previous definition of 'toggleBackfaceCulling'

Generating Code...

Compiling manifest to resources...

Linking...

Creating library ../../bin/win32/OsgViewer.lib and object ../../bin/win32/OsgViewer.exp

main.obj : warning LNK4217: locally defined symbol [EMAIL PROTECTED]@Producer@@QAEXXZ (public: void __thiscall Producer::OsgSceneHandler::toggleWireframe(void)) imported in function _main

main.obj : warning LNK4217: locally defined symbol [EMAIL PROTECTED]@Producer@@QAEXXZ (public: void __thiscall Producer::OsgSceneHandler::toggleTexturing(void)) imported in function _main

main.obj : warning LNK4217: locally defined symbol [EMAIL PROTECTED]@Producer@@QAEXXZ (public: void __thiscall Producer::OsgSceneHandler::toggleLighting(void)) imported in function _main

main.obj : warning LNK4217: locally defined symbol [EMAIL PROTECTED]@Producer@@QAEXXZ (public: void __thiscall Producer::OsgSceneHandler::toggleBackfaceCulling(void)) imported in function _main

main.obj : warning LNK4217: locally defined symbol [EMAIL PROTECTED]@Producer@@[EMAIL PROTECTED]@[EMAIL PROTECTED] (public: bool __thiscall Producer::OsgSceneHandler::getSceneBounds(class Producer::Vec3 &,float &)) imported in function _main

main.obj : warning LNK4217: locally defined symbol [EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z (public: __thiscall Producer::OsgSceneHandler::OsgSceneHandler(int,char * *,unsigned int)) imported in function _main

main.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall Producer::OsgSceneHandler::useAutoView(void)" ([EMAIL PROTECTED]@Producer@@UAE_NXZ)

main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall Producer::OsgSceneHandler::~OsgSceneHandler(void)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function "public: virtual void * __thiscall Producer::OsgSceneHandler::`scalar deleting destructor'(unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED])

OsgSceneHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const Producer::OsgSceneHandler::`vftable'{for `osg::CullSettings'}" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@@) referenced in function "public: __thiscall Producer::OsgSceneHandler::OsgSceneHandler(int,char * *,unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z)

OsgSceneHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) const Producer::OsgSceneHandler::`vftable'{for `Producer::Camera::SceneHandler'}" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@1@@) referenced in function "public: __thiscall Producer::OsgSceneHandler::OsgSceneHandler(int,char * *,unsigned int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@Z)

OsgSceneHandler.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall osgUtil::RenderStage::draw(class osg::RenderInfo &,class osgUtil::RenderLeaf * &)" ([EMAIL PROTECTED]@osgUtil@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z)

OsgSceneHandler.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall osgUtil::RenderStage::drawPreRenderStages(class osg::RenderInfo &,class osgUtil::RenderLeaf * &)" ([EMAIL PROTECTED]@osgUtil@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z)

OsgSceneHandler.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall osgUtil::RenderStage::drawInner(class osg::RenderInfo &,class osgUtil::RenderLeaf * &,bool &)" ([EMAIL PROTECTED]@osgUtil@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED])

OsgSceneHandler.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall osgUtil::RenderStage::drawPostRenderStages(class osg::RenderInfo &,class osgUtil::RenderLeaf * &)" ([EMAIL PROTECTED]@osgUtil@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z)

OsgSceneHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall osgUtil::CullVisitor::setRenderInfo(class osg::RenderInfo &)" ([EMAIL PROTECTED]@osgUtil@@[EMAIL PROTECTED]@@@Z) referenced in function "private: void __thiscall Producer::OsgSceneHandler::_cullStage(class osg::Matrixd const &,class osg::Matrixd const &,class osgUtil::CullVisitor *,class osgUtil::StateGraph *,class Producer::OsgSceneHandler::RenderStage *)" ([EMAIL PROTECTED]@Producer@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@[EMAIL PROTECTED]@@Z)

OsgSceneHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual void __thiscall osgUtil::RenderBin::drawImplementation(class osg::RenderInfo &,class osgUtil::RenderLeaf * &)" ([EMAIL PROTECTED]@osgUtil@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@Z) referenced in function "public: virtual void __thiscall Producer::OsgSceneHandler::RenderStage::drawImplementation(class osg::RenderInfo &,class osgUtil::RenderLeaf * &)" ([EMAIL PROTECTED]@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@[EMAIL PROTECTED]@@@Z)

../../bin/win32/OsgViewer.exe : fatal error LNK1120: 10 unresolved externals

Build log was saved at "file://c:\Producer\VC++7\OsgViewer\Debug\BuildLog.htm"

OsgViewer - 11 error(s), 24 warning(s)

========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

It's been a while since I last updated, so I'm not sure when these issues were introduced.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
303 859 9466
 
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to