Hmmm, small problem

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.
Endar
Posts: 145
Joined: Mon Jun 14, 2004 7:59 am

Post by Endar »

thesmileman wrote:I think the errors are because you already have the file included and you have included it again(ie the class has been redefined).

Does the HillTerrain class have a default constructer for when no arguments are included? I think that it does not and it requires arguments at the time of declaration.

Aaah, okay, I found it. What he did was in the header file he included the .inl file, and in the cpp file he included the header file. But he never included the cpp file. So, when I included it, the include header in the main function clashed with the include header in the source file. <head spinning>

Okay, I got it.

Thanks guys :D
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
thesmileman
Posts: 360
Joined: Tue Feb 10, 2004 2:20 am
Location: Lubbock, TX

Post by thesmileman »

an easy way to avoid such situations is anytime you do an include create a preprocessor If def directive so that it will only be included once
Post Reply