|
本帖最后由 xairwolfcn 于 2011-12-28 23:20 编辑
今天用SVN把OSG更新了下!然后CMAKE下开始编译下了出现这个错误!
不知道你们谁遇到过!网上查了下,应该没有问题,况且我对比了好几个版本的OSG出错的代码写的都一样,以前的版本都能编译通过!感觉VS2008有问题!??谁见过!- 1>------ Build started: Project: osg, Configuration: Debug Win32 ------
- 1>Compiling...
- 1>Matrixf.cpp
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(70) : warning C4003: not enough actual parameters for macro 'min'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(70) : error C2589: '(' : illegal token on right side of '::'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(70) : error C2059: syntax error : '::'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(71) : error C2143: syntax error : missing ';' before '{'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(76) : error C2181: illegal else without matching if
- 1>Matrixd.cpp
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(70) : warning C4003: not enough actual parameters for macro 'min'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(70) : error C2589: '(' : illegal token on right side of '::'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(70) : error C2059: syntax error : '::'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(71) : error C2143: syntax error : missing ';' before '{'
- 1>e:\osgcompile\openscenegraph\src\osg\Matrix_implementation.cpp(76) : error C2181: illegal else without matching if
- 1>Generating Code...
- 1>Build log was saved at "file://e:\OSGCompile\OSGBuild\src\osg\osg.dir\Debug\BuildLog.htm"
- 1>osg - 8 error(s), 2 warning(s)
- ========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
复制代码 出问题的代码段!- void Matrix_implementation::setRotate(const Quat& q)
- {
- double length2 = q.length2();
- if (fabs(length2) <= std::numeric_limits<double>::min())
- {
- _mat[0][0] = 0.0; _mat[1][0] = 0.0; _mat[2][0] = 0.0;
- _mat[0][1] = 0.0; _mat[1][1] = 0.0; _mat[2][1] = 0.0;
- _mat[0][2] = 0.0; _mat[1][2] = 0.0; _mat[2][2] = 0.0;
- }
- else
- {
- double rlength2;
复制代码 |
|