[no bug]compilation problem

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

[no bug]compilation problem

Post by drarem »

I call it a bug because it broke my compilation. How can I get around this, I tried declaring the first parameter as a const and const * globally. I guess no one else is having these problems.

Code: Select all

main.cpp:901: error: no matching function for call to ‘irr::scene::ISceneCollisionManager::getCollisionPoint(irr::core::line3d<float>&, irr::scene::ITriangleSelector*&, irr::core::vector3df&, irr::core::triangle3df&, const irr::scene::ISceneNode*&)’
/opt/irrlicht/include/ISceneCollisionManager.h:41: note: candidates are: virtual bool irr::scene::ISceneCollisionManager::getCollisionPoint(const irr::core::line3d<float>&, irr::scene::ITriangleSelector*, irr::core::vector3df&, irr::core::triangle3df&, irr::scene::ISceneNode*&)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I doubt that it's the first parameter that is causing troubles. Check the last one instead.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

I guess you use svn trunk. Not a bug, but we had to break compilation here because that parameters shouldn't have been made const (you need to be able to change it's position after collisions which forced users to ugly const-casts). So just remove the const for the last parameter.

I expect that will be asked a few more times, but well - changes happen.
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
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

Post by drarem »

Wow, thanks, I remember this change and think I was one of first to whine. Yes, using the SVN but I guess should be careful using it.
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

Post by drarem »

Looks like it's back in:

Code: Select all

error: no matching function for call to ‘irr::scene::ISceneCollisionManager::getCollisionPoint(irr::core::line3d<float>&, irr::scene::ITriangleSelector*&, irr::core::vector3df&, irr::core::triangle3df&, irr::scene::ISceneNode*&)’
/opt/irrlicht/include/ISceneCollisionManager.h:41: note: candidates are: virtual bool irr::scene::ISceneCollisionManager::getCollisionPoint(const irr::core::line3d<float>&, irr::scene::ITriangleSelector*, irr::core::vector3df&, irr::core::triangle3df&, const irr::scene::ISceneNode*&)
make: *** [all_linux] Error 1
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Are you using an old version? The current SVN/trunk has the non-const version. The 1.7.x version will keep the old interface, in order to avoid breaking the API in bug releases.
drarem
Posts: 81
Joined: Mon Mar 06, 2006 4:40 am
Contact:

Post by drarem »

Sorry, you're correct. Was pointing to the 1.7x
Post Reply