Newbie Questions

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
wingdongdoodle
Just popping in
Just popping in
Posts: 15
Joined: Tue Mar 15, 2005 21:41

Newbie Questions

Postby wingdongdoodle » Tue Mar 15, 2005 21:46

im new to CEGUI, and im tryign to get it workign at the moment.. I have downloaded and compiled (everything except one fo the DX libs and the ogre lib). Im attempting to use openGL... but i cant seem to figure out what to link and use to use the openGL renderer.

I found a copy of demo 4 that uses an openGL renderer, so i decided to work from there. However, when i try to use <CEGUI.h>, i get an error in teh CEGUIstring.h file on this line:

return encoded_size(&ptr()[idx], std::min(num, maxlen));

which is part of the size_type utf8_stream_len(size_type num = npos, size_type idx = 0) function.

the error i get is

syntax error: "::"
illegal token "(" on right side of ::



not to sure how to fix this, any suggestions would be helpful :)

EDIT:

well, it appears that i have visual C++ 7.1, and min/max arnt defined for some microsoft reason, so i just had to write it myself in there...problem solved, although very irritating...

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Newbie Questions

Postby CrazyEddie » Wed Mar 16, 2005 09:33

Hi,

Glad you managed to resolve the issue.

The actual cause is that the Win32 headers contain macro definitions of min and max, which totally messes up anything using perfectly standard c++ such as std::min and std::max. The usual solution is to either undef these macros or to #define NOMINMAX before your Win32 includes.

CE.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 12 guests