Error in compiling svn -> E_TEXTURE_CREATION_FLAGS

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.

Error in compiling svn -> E_TEXTURE_CREATION_FLAGS

Postby gerdb » Fri Apr 27, 2012 7:12 pm

hi,

im currently trying to add some functions to irrlicht-svn,

but i always get a compiler error in IVideoDriver saying

..\..\include\IVideoDriver.h|1157|error: 'E_TEXTURE_CREATION_FLAG' has not been declared|

IVideoDriver.h has ITexture.h included and does not mock with ITexture itself, so the file must have been processed somehow

hope you guys had also this issue, so you can help me :-)

thx in advance

EDIT:

using CB svn 7932, MinGW-TDM 4.6.1 dw2, Win7 32bit
gerdb
 
Posts: 168
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

Re: Error in compiling svn -> E_TEXTURE_CREATION_FLAGS

Postby gerdb » Fri Apr 27, 2012 8:17 pm

Finally, i removed some #include directives and added some forward class declarations, sry for disturbing,

i guess the problem was the internal compile order of the files. (i really dont know how the order is created by CB)
gerdb
 
Posts: 168
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

Re: Error in compiling svn -> E_TEXTURE_CREATION_FLAGS

Postby REDDemon » Sat Apr 28, 2012 1:01 pm

the order of Cb is the same order you see for files. Linking order is the same of target libraries in the order these are displayed in the options.
OpenGL is not hard. What you have to do is just explained in specifications. What is hard is dealing with poor OpenGL implementations.
User avatar
REDDemon
 
Posts: 831
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Re: Error in compiling svn -> E_TEXTURE_CREATION_FLAGS

Postby gerdb » Sat Apr 28, 2012 6:16 pm

its odd,

i added some memberfunctions to IImage/CImage that need to know the IVideoDriver

IVideoDriver itself need to know about IImage/CImage

this is a crossrelation, but how do i solve this correctly?

#1 i included "IVideoDriver.h" to IImage
#2 i added a forward declaration class IVideoDriver to IImage

but in the one case IVideoDriver does not know E_TEXTURE_CREATION_FLAG from ITexture.h

and in the 2nd case IImage does not know about IVideoDriver.

is this a solveable problem?
gerdb
 
Posts: 168
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany

Re: Error in compiling svn -> E_TEXTURE_CREATION_FLAGS

Postby CuteAlien » Sat Apr 28, 2012 8:32 pm

In that case you might have to move the enums into an own file (generally a good idea anyway - we should probably do that more in Irrlicht)
IRC: #irrlicht on irc.freenode.net
My patches&stuff: http://www.michaelzeilfelder.de/irrlicht.htm
Games with Irrlicht: http://www.irrgheist.com/
News: http://www.reddit.com/r/irrlicht/
User avatar
CuteAlien
Admin
 
Posts: 5358
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany

Re: Error in compiling svn -> E_TEXTURE_CREATION_FLAGS

Postby gerdb » Mon Apr 30, 2012 5:57 pm

yeah,

that was exactly the way to get it compiled.
gerdb
 
Posts: 168
Joined: Wed Dec 02, 2009 8:21 pm
Location: Dresden, Germany


Return to Beginners Help

Who is online

Users browsing this forum: No registered users and 1 guest