The output below is from current SVN building osgDB (osg and osgUtil are fine).
VS doesn't provide too many clues when xtree or set generate compile errors. I haven't dug into this very deeply, but on first glance it appears that perhaps CompareStateAttributes::operator() should be declared const? -Paul 1>------ Build started: Project: osgDB, Configuration: Release Win32 ------ 1>Compiling... 1>SharedStateManager.cpp 1>C:\Program Files\Microsoft Visual Studio 8\VC\include\xtree(1174) : error C3848: expression having type 'const osgDB::SharedStateManager::CompareStateAttributes' would lose some const-volatile qualifiers in order to call 'bool osgDB::SharedStateManager::CompareStateAttributes::operator ()(const osg::ref_ptr<T> &,const osg::ref_ptr<T> &)' 1> with 1> [ 1> T=osg::StateAttribute 1> ] 1> C:\Program Files\Microsoft Visual Studio 8\VC\include\xtree(1169) : while compiling class template member function 'std::_Tree_nod<_Traits>::_Node *std::_Tree<_Traits>::_Lbound(const osg::ref_ptr<T> &) const' 1> with 1> [ 1> _Traits=std::_Tset_traits<osg::ref_ptr<osg::StateAttribute>,osgDB::SharedSta teManager::CompareStateAttributes,std::allocator<osg::ref_ptr<osg::StateAttr ibute>>,false>, 1> T=osg::StateAttribute 1> ] 1> C:\Program Files\Microsoft Visual Studio 8\VC\include\set(69) : see reference to class template instantiation 'std::_Tree<_Traits>' being compiled 1> with 1> [ 1> _Traits=std::_Tset_traits<osg::ref_ptr<osg::StateAttribute>,osgDB::SharedSta teManager::CompareStateAttributes,std::allocator<osg::ref_ptr<osg::StateAttr ibute>>,false> 1> ] 1> F:\OSGDev\OpenSceneGraph\include\osgDB/SharedStateManager(88) : see reference to class template instantiation 'std::set<_Kty,_Pr>' being compiled 1> with 1> [ 1> _Kty=osg::ref_ptr<osg::StateAttribute>, 1> _Pr=osgDB::SharedStateManager::CompareStateAttributes 1> ] 1>Build log was saved at "file://f:\OSGDev\OpenSceneGraph\build\src\osgDB\osgDB.dir\Release\BuildLog. htm" 1>osgDB - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 3 up-to-date, 0 skipped ========== _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

