svn head does not compile
Posted: Fri May 18, 2007 13:29
I've just get the svn HEAD of cegui, and when trying to compile, i get this error:
../include/elements/CEGUITree.h:69: error: a class-key must be used when declaring a friend
../include/elements/CEGUITree.h:69: error: friend declaration does not name a class or function
If i comment the "friend TreeItem;" line 69, cegui does build without other error, but ogre fails in Samples/Gui/src with:
/usr/local/lib/libCEGUIBase.so: undefined reference to `CEGUI::Tree::WidgetTypeName'
/usr/local/lib/libCEGUIBase.so: undefined reference to `CEGUI::Tree::Tree(CEGUI::String const&, CEGUI::String const&)'
I don't know if this is related, but i guess it is, since it is not on google. How can be fixed the friend line ? Thanks
../include/elements/CEGUITree.h:69: error: a class-key must be used when declaring a friend
../include/elements/CEGUITree.h:69: error: friend declaration does not name a class or function
If i comment the "friend TreeItem;" line 69, cegui does build without other error, but ogre fails in Samples/Gui/src with:
/usr/local/lib/libCEGUIBase.so: undefined reference to `CEGUI::Tree::WidgetTypeName'
/usr/local/lib/libCEGUIBase.so: undefined reference to `CEGUI::Tree::Tree(CEGUI::String const&, CEGUI::String const&)'
I don't know if this is related, but i guess it is, since it is not on google. How can be fixed the friend line ? Thanks