[no bug]Errors compiling code::blocks project

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
Talus
Posts: 2
Joined: Thu Jul 07, 2011 11:15 am

[no bug]Errors compiling code::blocks project

Post by Talus »

I'm trying to compile Irrlich with code::blocks under Windows

but I have some errors :
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|617|error: enumeration value 'ECF_R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|617|error: enumeration value 'ECF_G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|617|error: enumeration value 'ECF_A16B16G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|617|error: enumeration value 'ECF_R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|617|error: enumeration value 'ECF_G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|617|error: enumeration value 'ECF_A32B32G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|617|error: enumeration value 'ECF_UNKNOWN' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|634|error: enumeration value 'ECF_R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|634|error: enumeration value 'ECF_G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|634|error: enumeration value 'ECF_A16B16G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|634|error: enumeration value 'ECF_R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|634|error: enumeration value 'ECF_G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|634|error: enumeration value 'ECF_A32B32G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|634|error: enumeration value 'ECF_UNKNOWN' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|651|error: enumeration value 'ECF_R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|651|error: enumeration value 'ECF_G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|651|error: enumeration value 'ECF_A16B16G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|651|error: enumeration value 'ECF_R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|651|error: enumeration value 'ECF_G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|651|error: enumeration value 'ECF_A32B32G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|651|error: enumeration value 'ECF_UNKNOWN' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|668|error: enumeration value 'ECF_R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|668|error: enumeration value 'ECF_G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|668|error: enumeration value 'ECF_A16B16G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|668|error: enumeration value 'ECF_R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|668|error: enumeration value 'ECF_G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|668|error: enumeration value 'ECF_A32B32G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|668|error: enumeration value 'ECF_UNKNOWN' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|614|error: enumeration value 'ECF_R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|614|error: enumeration value 'ECF_G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|614|error: enumeration value 'ECF_A16B16G16R16F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|614|error: enumeration value 'ECF_R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|614|error: enumeration value 'ECF_G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|614|error: enumeration value 'ECF_A32B32G32R32F' not handled in switch|
G:\R3D Engine\IRR_svn\trunk\source\Irrlicht\CColorConverter.cpp|614|error: enumeration value 'ECF_UNKNOWN' not handled in switch|
||=== Build finished: 35 errors, 0 warnings ===|
How can I resolve It ?
teto
Posts: 159
Joined: Thu Dec 03, 2009 9:37 pm
Location: /home
Contact:

Re: Errors compiling code::blokcs project

Post by teto »

Seems to me like your compiler is strict. Try adding 'default' in the switch(){ ... default: break;}.
Using trunk with mingw/gcc 4.6, Windows 7 64 bits driver opengl
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Errors compiling code::blokcs project

Post by CuteAlien »

You seem to have enabled something to tread warnings as errors. Those should just be warnings (and they are fine as warning - because they tell us we don't handle those cases so far).
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
Talus
Posts: 2
Joined: Thu Jul 07, 2011 11:15 am

Re: Errors compiling code::blokcs project

Post by Talus »

"Default" are working, at some place I place-it

but now :

<citation>
||=== Irrlicht, Win32 - Debug - dll ===|
\trunk\source\Irrlicht\CBlit.h|1182|error: 'irr::s32 irr::StretchBlit(irr::eBlitter, irr::video::IImage*, const irr::core::rect<int>*, const irr::core::rect<int>*, irr::video::IImage*, irr::u32)' defined but not used|
\trunk\source\Irrlicht\CBlit.h|1239|error: 'void irr::drawRectangle(irr::video::IImage*, const irr::core::rect<int>&, const irr::video::SColor&)' defined but not used|
\trunk\source\Irrlicht\CBlit.h|1247|error: 'void irr::drawLine(irr::video::IImage*, const irr::core::vector2d<int>&, const irr::core::vector2d<int>&, const irr::video::SColor&)' defined but not used|
||=== Build finished: 3 errors, 0 warnings ===|
teto
Posts: 159
Joined: Thu Dec 03, 2009 9:37 pm
Location: /home
Contact:

Re: Errors compiling code::blokcs project

Post by teto »

Same as CuteAlien, this shouldn't be an error. Look into your compiler parameters.
Right click on your project, choose "Build options" and look what are the checked checkboxes. You might want to uncheck some.
Using trunk with mingw/gcc 4.6, Windows 7 64 bits driver opengl
Post Reply