[Fixed] Latest change in trunk break in vs 2013

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
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

[Fixed] Latest change in trunk break in vs 2013

Post by thanhle »

cannot convert from 'irr::core::dimension2d<irr::s32>' to 'irr::core::rect<irr::s32>'

----------------------------
Error 3 error C2440: '<function-style-cast>' : cannot convert from 'irr::core::dimension2d<irr::s32>' to 'irr::core::rect<irr::s32>' E:\ProjectCodes\Irrlicht\LatestIrrlicht\trunk\source\Irrlicht\CGUIEnvironment.cpp 60 1 Irrlicht
Error 5 error C2440: '<function-style-cast>' : cannot convert from 'irr::core::dimension2d<irr::s32>' to 'irr::core::rect<irr::s32>' E:\ProjectCodes\Irrlicht\LatestIrrlicht\trunk\source\Irrlicht\CGUIEnvironment.cpp 1019 1 Irrlicht
Error 6 error C2440: '<function-style-cast>' : cannot convert from 'irr::core::dimension2d<irr::s32>' to 'irr::core::rect<irr::s32>' E:\ProjectCodes\Irrlicht\LatestIrrlicht\trunk\source\Irrlicht\CGUIEnvironment.cpp 1401 1 Irrlicht
Error 7 error C2440: '<function-style-cast>' : cannot convert from 'irr::core::dimension2d<irr::s32>' to 'irr::core::rect<irr::s32>' E:\ProjectCodes\Irrlicht\LatestIrrlicht\trunk\source\Irrlicht\CGUIImage.cpp 84 1 Irrlicht


//Updated the whole trunk
My mistake need to update source as well as include folder.
Last edited by thanhle on Sun Mar 01, 2015 4:32 pm, edited 3 times in total.
CuteAlien
Admin
Posts: 9682
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Latest change in trunk break in vs 2013

Post by CuteAlien »

Could it be you have set your include path somehow to other headers? Because this looks like you update the source files, but are now using them with the old headers (core::rect got a new contructor which is needed for this changes to work).
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
thanhle
Posts: 325
Joined: Wed Jun 12, 2013 8:09 am

Re: Latest change in trunk break in vs 2013

Post by thanhle »

Thanks mate I forgot to do a global update instead of the source only.
Regards
thanh
Post Reply