Page 1 of 1

[SOLVED] Problem with circular includes in irrlicht 1.9?

Posted: Thu Apr 10, 2014 1:07 pm
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:

Re: Problem with circular includes in irrlicht 1.9?

Posted: Thu Apr 10, 2014 2:22 pm
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).

Re: Problem with circular includes in irrlicht 1.9?

Posted: Thu Apr 10, 2014 2:31 pm
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)

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

Posted: Thu Apr 10, 2014 3:19 pm
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.

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

Posted: Tue Apr 15, 2014 4:36 am
by AlfAlien
Thank you, very much! That's exactly what was wrong.