[SOLVED] Problem with circular includes in irrlicht 1.9?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
AlfAlien
Posts: 20
Joined: Tue Jan 28, 2014 2:08 pm

[SOLVED] Problem with circular includes in irrlicht 1.9?

Post by AlfAlien »

I try to compile CEGLManager.cpp w/ MinGW and get this error:

Code: Select all

 
In file included from CEGLManager.h:12:0,
                 from CEGLManager.cpp:1:
../include/IContextManager.h:10:3: error: expected class-name before '{' token
make: *** [gles2/CEGLManager.o] Error 1
 
Seems like sort of circular includes/references. Is this a known bug? Please, give me a clue :cry:
Last edited by AlfAlien on Thu Apr 10, 2014 3:03 pm, edited 1 time in total.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with circular includes in irrlicht 1.9?

Post by CuteAlien »

This doesn't look like a current version (include for IContextManager isn't in line 12 but line 20 in current svn ogl branch).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AlfAlien
Posts: 20
Joined: Tue Jan 28, 2014 2:08 pm

Re: Problem with circular includes in irrlicht 1.9?

Post by AlfAlien »

CuteAlien wrote:This doesn't look like a current version (include for IContextManager isn't in line 12 but line 20 in current svn ogl branch).
I just removed all comments from source files (easier to read). Anyway, please, can you say (based on this gcc output) what file I should edit/explore to find the problem? (seems like "standard" problem with circular includes)
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: [SOLVED] Problem with circular includes in irrlicht 1.9?

Post by CuteAlien »

All the files have header-guards, so there are no circular includes. That's unless you removed those as well.
It's missing the include to whatever class it expects in line 10 - but as you changed the headers I can no longer tell what the header contains there in your case.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
AlfAlien
Posts: 20
Joined: Tue Jan 28, 2014 2:08 pm

Re: [SOLVED] Problem with circular includes in irrlicht 1.9?

Post by AlfAlien »

Thank you, very much! That's exactly what was wrong.
Post Reply