|
楼主 |
发表于 2012-4-3 12:06:20
|
显示全部楼层
array 发表于 2012-4-1 15:00
请给出错误信息,也许只是MS的某个头文件变化了而已,MS的版本一向大起大落,我们也没办法
template <typename U>
struct PointerTraits<U*>
{
typedef U PointeeType;
};
template <typename FuncObj>
class RefPtrAdapter
: public std::unary_function<const osg::ref_ptr<typename PointerTraits<typename FuncObj::argument_type>:ointeeType>,
typename FuncObj::result_type>
{
....
}
template <typename U>
struct PointerTraits<U*>
{
typedef U PointeeType;
};
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(64) : error C2065: 'U' : undeclared identifier
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(64) : error C2059: syntax error : '>'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(65) : error C2143: syntax error : missing ';' before '{'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(67) : error C2143: syntax error : missing ';' before '}'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(70) : error C2146: syntax error : missing ',' before identifier 'U'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(70) : error C2059: syntax error : '>'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(71) : error C2143: syntax error : missing ';' before '{'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(73) : error C2143: syntax error : missing ';' before '}'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(77) : error C2653: 'FuncObj' : is not a class or namespace name
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(77) : error C2146: syntax error : missing ',' before identifier 'argument_type'
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(77) : error C2065: 'argument_type' : undeclared identifier
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(77) : error C2687: cannot define a nested UDT of a template class out of line
\OSG2.6-src\OpenSceneGraph-2.6.0\src\osgDB\DatabasePager.cpp(77) : fatal error C1903: unable to recover from previous error(s); stopping compilation
帮忙看一下,我列举的一些错误,我现在用的source code 版本是2.6.0,之前用过一个最近版本的source code 去编译,一个工程错误就是几百个。 |
|