|
我写了一个简单的基于windows控制台的osg程序,平台是vs 2005,运行没有问题。由于需要,我把它移植到了VC++ 6.0,工程属性设置都没变,但是无法编译,出现了以下错误和警告,不知道为什么?
Compiling...
text.cpp
d:\program files\osg2.0_vc80\include\osg\stateattribute(204) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
d:\program files\osg2.0_vc80\include\osg\stateattribute(282) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
d:\program files\osg2.0_vc80\include\osg\bufferobject(92) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
d:\program files\osg2.0_vc80\include\osg\bufferobject(246) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
d:\program files\osg2.0_vc80\include\osg\bufferobject(282) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
d:\program files\osg2.0_vc80\include\osg\bufferobject(318) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
d:\program files\osg2.0_vc80\include\osg\array(86) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
d:\program files\osg2.0_vc80\include\osg\array(242) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Object' with /GR-; unpredictable behavior may result
......
d:\program files\osg2.0_vc80\include\osgviewer\graphicswindow(44) : error C2143: syntax error : missing ',' before '*'
d:\program files\osg2.0_vc80\include\osgviewer\graphicswindow(44) : error C2059: syntax error : '*'
d:\program files\osg2.0_vc80\include\osgviewer\graphicswindow(148) : error C2061: syntax error : identifier 'GraphicsContext'
d:\program files\osg2.0_vc80\include\osgviewer\graphicswindow(203) : error C2143: syntax error : missing ',' before '*'
d:\program files\osg2.0_vc80\include\osgviewer\graphicswindow(203) : error C2059: syntax error : '*'
e:\#######\学习\osg\练习\text\text.cpp(41) : warning C4541: 'dynamic_cast' used on polymorphic type 'class osg::Node' with /GR-; unpredictable behavior may result
Error executing cl.exe.
Text.exe - 5 error(s), 75 warning(s)
osg在VC++ 6.0下需要进行什么特殊的配置吗?我用的osg是2.2的 |
|