Strange error DevCPP Irrlicht 0.12

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
Guest

Strange error DevCPP Irrlicht 0.12

Post by Guest »

What does this error message mean?

comparison between distinct pointer types `irr::scene::ISceneNode*' and `irr::scene::ISceneNode**' lacks a cast


Here some code:

Code: Select all


scene::ISceneNode* Mesh1;
scene::ISceneNode* Mesh2;
if(Mesh1 == Mesh2)
[/i]
Guest

Post by Guest »

komm schon, bidddeee!
Ich brauch hilfe.
Irgenteiner wird doch ne Lösung haben.
bearSoft
Posts: 165
Joined: Fri Apr 01, 2005 9:55 pm
Location: Denmark

Post by bearSoft »

an equallity resolvement needs an opperator overload. eg there is no opperator for '==' for ISceneNode*
..the error message is though rather cryptic, but i am -pretty- sure its the opperator that is the problem. No solution :(

nb the prefered language on this forum is english.
also -Do take the time to sign up
Regards.
Tech: win98se| 320mb ram| abitbe6| 433mhzceleron| atiRadeon7000.64mb| soundblaster125| dx9.0b | devCPP | IRR 0.12.0 |
hybrid

Re: Strange error DevCPP Irrlicht 0.12

Post by hybrid »

Anonymous wrote:What does this error message mean?

comparison between distinct pointer types `irr::scene::ISceneNode*' and `irr::scene::ISceneNode**' lacks a cast


Here some code:

Code: Select all


scene::ISceneNode* Mesh1;
scene::ISceneNode* Mesh2;
if(Mesh1 == Mesh2)
Now, the error means that you compare pointers with pointers to pointers. But the code provided would never issue such an error. Either you'd declare one of the variables as ISceneNode** MeshX, or you'd use (&Mesh1 == Mesh2). Both would be wrong, but your code did not expose this.
And please, take some time. Complaining after less than an hour is :evil: ! If you have some deadline - that's your fault. If you just can't proceed - read a C++ book which could help with this or similar problems.
Post Reply