Hi, J-S... My settup isn't much different than what has been reported previously in this thread, by both people for whom this worked, and that had the errors.
OSG 2.8.2 (last Stable release) osgOcean 1.0.1 (latest release) Visual Studio 2008 And the errors for the first cpp with problems: Code: 1>Compiling... 1>SiltEffect.cpp 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C3767: '<': candidate function(s) not accessible 1> could be the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1729) : error C2676: binary '<' : 'const std::string' does not define this operator or a conversion to a type acceptable to the predefined operator 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C3767: '<': candidate function(s) not accessible 1> could be the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(152)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(153)' : '<' [may be found via argument-dependent lookup] 1> or the friend function at 'C:\[....]\OpenSceneGraph-2.8.2\include\osg/MixinVector(154)' : '<' [may be found via argument-dependent lookup] 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xtree(1466) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::vector<_Ty,_Alloc> &,const std::vector<_Ty,_Alloc> &)' : could not deduce template argument for 'const std::vector<_Ty,_Alloc> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\vector(1327) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::reverse_iterator<_RanIt> &,const std::reverse_iterator<_RanIt2> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2262) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::_Revranit<_RanIt,_Base> &,const std::_Revranit<_RanIt2,_Base2> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xutility(2072) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2784: 'bool std::operator <(const std::pair<_Ty1,_Ty2> &,const std::pair<_Ty1,_Ty2> &)' : could not deduce template argument for 'const std::pair<_Ty1,_Ty2> &' from 'const std::string' 1> c:\Program Files\Microsoft Visual Studio 9.0\VC\include\utility(92) : see declaration of 'std::operator <' 1>C:\[....]\OpenSceneGraph-2.8.2\include\osg/State(1741) : error C2676: binary '<' : 'const std::string' does not define this operator or a conversion to a type acceptable to the predefined operator 1>Build log was saved at "file://c:\[....]\OpenSceneGraph-2.8.2\osgOcean\src\osgOcean\osgOcean.dir\Release\BuildLog.htm" 1>osgOcean - 44 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=23650#23650 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org