Page 1 of 1

svn head does not compile

Posted: Fri May 18, 2007 13:29
by vinvin
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/ undefined reference to `CEGUI::Tree::WidgetTypeName'
/usr/local/lib/ 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

Posted: Sat May 19, 2007 12:05
by scriptkid
Right, i have commited a fix:

-Changed 'friend TreeItem;' into 'friend class TreeItem;' for non-MS compilers.

thanks for reporting.

Posted: Sun May 20, 2007 17:38
by vinvin
Thanks for fixing :)
So something has changed since stable release (0.5) because Ogre does not link with the svn version.

Posted: Sun May 20, 2007 20:34
by scriptkid
Yes some changes have been made since the latest stable release. More news about that soon... :)

Indeed Ogre uses (obviously) stable versions to ship with it.