svn head does not compile

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

vinvin
Just popping in
Just popping in
Posts: 7
Joined: Fri Mar 02, 2007 00:12
Location: Antibes, France
Contact:

svn head does not compile

Postby vinvin » 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

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sat May 19, 2007 12:05

Right, i have commited a fix:

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

thanks for reporting.

vinvin
Just popping in
Just popping in
Posts: 7
Joined: Fri Mar 02, 2007 00:12
Location: Antibes, France
Contact:

Postby vinvin » Sun May 20, 2007 17:38

Thanks for fixing :)
So something has changed since stable release (0.5) because Ogre does not link with the svn version.

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sun May 20, 2007 20:34

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.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 14 guests