真心求助osgearth编译错误,请给予提示
错误 22 error C2039: “const_iterator”: 不是“osgGA::EventVisitor”的成员 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil错误 18 error C2039: “EventList”: 不是“osgGA::EventVisitor”的成员 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 49 1 osgEarthUtil
错误 34 error C2059: 语法错误:“)” D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 32 error C2059: 语法错误:“;” D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 23 error C2065: “const_iterator”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 25 error C2065: “e”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 28 error C2065: “e”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 33 error C2065: “e”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 36 error C2065: “e”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 54 1 osgEarthUtil
错误 19 error C2065: “EventList”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 49 1 osgEarthUtil
错误 20 error C2065: “events”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 49 1 osgEarthUtil
错误 26 error C2065: “events”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 29 error C2065: “events”: 未声明的标识符 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 31 error C2143: 语法错误 : 缺少“)”(在“++”的前面) D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 35 error C2143: 语法错误 : 缺少“;”(在“{”的前面) D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 53 1 osgEarthUtil
错误 24 error C2146: 语法错误: 缺少“;”(在标识符“e”的前面) D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 37 error C2227: “->get”的左边必须指向类/结构/联合/泛型类型 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 54 1 osgEarthUtil
错误 27 error C2228: “.begin”的左边必须有类/结构/联合 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 30 error C2228: “.end”的左边必须有类/结构/联合 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 1 error C2440: “初始化”: 无法从“osgGA::Event *”转换为“osgGA::GUIEventAdapter *” D:\OSG\osgearth2.5\src\osgEarth\Draggers.cpp 180 1 osgEarth
错误 21 error C3083: “EventList”:“::”左侧的符号必须是一种类型 D:\OSG\osgearth2.5\src\osgEarthUtil\AnnotationEvents.cpp 52 1 osgEarthUtil
错误 2 error LNK1104: 无法打开文件“..\..\..\lib\Debug\osgEarthd.lib” D:\OSG\osgearth2.5\VS2010\src\osgEarthDrivers\yahoo\LINK Plugin osgearth_yahoo
错误 4 error LNK1104: 无法打开文件“..\..\..\lib\Debug\osgEarthd.lib” D:\OSG\osgearth2.5\VS2010\src\osgEarthDrivers\wcs\LINK Plugin osgearth_wcs
错误 6 error LNK1104: 无法打开文件“..\..\..\lib\Debug\osgEarthd.lib” D:\OSG\osgearth2.5\VS2010\src\osgEarthDrivers\vpb\LINK Plugin osgearth_vpb
你用的是osg3.0以上版本, 新版本中的“EventList”: 不再是“osgGA::EventVisitor”的成员 ,不过还好此处影响不大,你将AnnotationEvents.cpp中用到EventList的函数注释掉,并且将对应的头文件中一并注释掉。就可以编译过去了。之所以出现这种原因是因为osgearth的更新赶不上osg。
页:
[1]