|
楼主 |
发表于 2010-4-22 16:37:40
|
显示全部楼层
本帖最后由 bingxinguoke 于 2010-4-22 16:45 编辑
用的这个anjuta。。。不知道可不可以。。。
另外直接用g++可以么。。
g++ h.cpp -L/usr/share/openscenegraph/lib -I/usr/share/openscenegraph/include
报了好多类似这样的错:
/usr/share/openscenegraph/include/osg/Camera:87: error: ‘GLbitfield’ has not been declared
/usr/share/openscenegraph/include/osg/Camera:90: error: ‘GLbitfield’ does not name a type
/usr/share/openscenegraph/include/osg/Camera:297: error: ‘GLenum’ has not been declared
/usr/share/openscenegraph/include/osg/Camera:300: error: ‘GLenum’ does not name a type
/usr/share/openscenegraph/include/osg/Camera:304: error: ‘GLenum’ has not been declared
。。。。。。
/usr/share/openscenegraph/include/osg/ref_ptr: In member function ‘void osg::ref_ptr<T>::assign(const osg::ref_ptr<Other>&) [with Other = int, T = int]’:
/usr/share/openscenegraph/include/osg/ref_ptr:37: instantiated from ‘osg::ref_ptr<T>& osg::ref_ptr<T>:perator=(const osg::ref_ptr<T>&) [with T = int]’
/usr/share/openscenegraph/include/osg/Geometry:115: instantiated from here
/usr/share/openscenegraph/include/osg/ref_ptr:106: error: request for member ‘ref’ in ‘*((osg::ref_ptr<int>*)this)->osg::ref_ptr<int>::_ptr’, which is of non-class type ‘int’
/usr/share/openscenegraph/include/osg/ref_ptr:110: error: request for member ‘unref’ in ‘* tmp_ptr’, which is of non-class type ‘int’ |
|