I can't see any errors.
Could be a typo in your other files. It most often is.
However, I load TaharezLookSkin.scheme, instead of TaharezLook.scheme. That's the only obvious difference..
[solved]Compiling error in CEGUIString.h
Moderators: CEGUI MVP, CEGUI Team
Re: Compiling error in CEGUIString.h
I am quite sure its not a typo, because when I comment out all that has to do with CEGUI and the frame listener, I get it to run just fine.
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Compiling error in CEGUIString.h
You might try adding:
prior to any line that includes any Win32 headers (watch out for where they may get implicitly included), or move your lines that undefine min/max to be after the Win32 includes but before any others.
Code: Select all
#define NOMINMAX
prior to any line that includes any Win32 headers (watch out for where they may get implicitly included), or move your lines that undefine min/max to be after the Win32 includes but before any others.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Compiling error in CEGUIString.h
Nope...
Nothing seems to help.
Tried defining it in the code where you said, I even tried defining it in the preprossesor. No change.
I'm just about to give up.
Nothing seems to help.
Tried defining it in the code where you said, I even tried defining it in the preprossesor. No change.
I'm just about to give up.
-
- Quite a regular
- Posts: 74
- Joined: Mon Apr 28, 2008 23:21
- Location: Australia
Re: Compiling error in CEGUIString.h
1>herbert_game.cpp
1>c:\ogresdk\include\cegui\ceguistring.h(644) : error C2059: syntax error : 'constant'
1>c:\ogresdk\include\cegui\ceguistring.h(645) : error C2334: unexpected token(s) preceding '{'; skipping
When I get strange errors in files that should be fine I blame the file before it. herbert_game.cpp was getting compiled when the errors were thrown so look there. Check for missing semi-colons especially on the ends of classes.
Also under project settings check what character set you are using. If its not "Not set", try compiling with that setting to see what happens.
You might try adding:Code: Select all
#define NOMINMAX
prior to any line that includes any Win32 headers (watch out for where they may get implicitly included), or move your lines that undefine min/max to be after the Win32 includes but before any others.
Awesome suggestion. I've been burnt by this before and if you don't know about it, it can be a time vortex...
ER.
Re: Compiling error in CEGUIString.h
Okey after what earthsruler said I began moving the includes around, just to see what would happen :p.
When i moved
into the herbert_game.h file all of a sudden everything compiled perfectly.
My troubles are finally over. Thanks for all the help, I really appreciate it.
When i moved
Code: Select all
#include <CEGUI/CEGUI.h>
#include <CEGUI/CEGUISystem.h>
#include <CEGUI/CEGUISchemeManager.h>
#include <OgreCEGUIRenderer.h>
into the herbert_game.h file all of a sudden everything compiled perfectly.
My troubles are finally over. Thanks for all the help, I really appreciate it.
Who is online
Users browsing this forum: No registered users and 21 guests