|
本帖最后由 CWorld 于 2013-4-3 11:01 编辑
现象:
使用VC9.0 编译osgOcean, 产生如下错误:
"error C3767: '<': candidate function(s) not accessible" , "error C2784: 'bool std:perator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const std::string'" etc..,
具体原因:
In the osgOcean project settings, the additional include directories includes the osg header directories, including osgDB and osgText. These are put there by CMake, which demands those paths in order to generate the project files.
osgText has its own String class based on std::string and osgDB has it's own fstream. Both are defined in headers with the same name as the standard library headers. So when osgOcean tries to include the standard varieties, it gets these overridden files.
By removing those two directories from the additional includes, osgOcean builds correctly.
转载地址:
http://forum.openscenegraph.org/viewtopic.php?t=3422 |
|