giardante
28-05-2006 18:49:33
In Ubuntu Dapper I'm getting tons of lines like the following when trying to compile the ogredotnet bindings:
OgreBindings_wrap.cxx: In function 'const Ogre::Light*& std_vector_Sl_Ogre_Light_Sm__Sg__getitem(std::vector<Ogre::Light*, std::allocator<Ogre::Light*> >*, int)':
OgreBindings_wrap.cxx:488: error: invalid initialization of reference of type 'const Ogre::Light*&' from expression of type 'Ogre::Light*'
...
OgreBindings_wrap.cxx:1703: error: initializing argument 2 of 'typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = Ogre::IndexData*, _Alloc = std::allocator<Ogre::IndexData*>]'
OgreBindings_wrap.cxx: In function 'std::vector<Ogre::IndexData*, std::allocator<Ogre::IndexData*> >* std_vector_Sl_Ogre_IndexData_Sm__Sg__Repeat(const Ogre::IndexData*&, int)':
OgreBindings_wrap.cxx:1731: error: invalid conversion from 'const Ogre::IndexData*' to 'Ogre::IndexData*'
Anyone know off the top of their head what I need to adjust?
OgreBindings_wrap.cxx: In function 'const Ogre::Light*& std_vector_Sl_Ogre_Light_Sm__Sg__getitem(std::vector<Ogre::Light*, std::allocator<Ogre::Light*> >*, int)':
OgreBindings_wrap.cxx:488: error: invalid initialization of reference of type 'const Ogre::Light*&' from expression of type 'Ogre::Light*'
...
OgreBindings_wrap.cxx:1703: error: initializing argument 2 of 'typename std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(__gnu_cxx::__normal_iterator<typename _Alloc::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = Ogre::IndexData*, _Alloc = std::allocator<Ogre::IndexData*>]'
OgreBindings_wrap.cxx: In function 'std::vector<Ogre::IndexData*, std::allocator<Ogre::IndexData*> >* std_vector_Sl_Ogre_IndexData_Sm__Sg__Repeat(const Ogre::IndexData*&, int)':
OgreBindings_wrap.cxx:1731: error: invalid conversion from 'const Ogre::IndexData*' to 'Ogre::IndexData*'
Anyone know off the top of their head what I need to adjust?