Irrlicht 1.0 compile error

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
Skinney
Posts: 4
Joined: Fri Dec 16, 2005 3:44 pm
Location: Norway

Irrlicht 1.0 compile error

Post by Skinney »

hi!
trying to compile the latest version of Irrlich(1.0) i get thousands of warnings and some errors when compiling.

Im using Fedora Core 5 32 bit and the GCC 4.1 compiler...

Code: Select all

Compiling: main.cpp
/home/Skinney/C++/Irrlicht/include/SLight.h: In constructor ‘irr::video::SLight::SLight()’:
/home/Skinney/C++/Irrlicht/include/SLight.h:57: warning: ‘irr::video::SLight::Type’ will be initialized after
/home/Skinney/C++/Irrlicht/include/SLight.h:37: warning:   ‘irr::video::SColorf irr::video::SLight::AmbientColor’
/home/Skinney/C++/Irrlicht/include/SLight.h:31: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/SMaterial.h: In constructor ‘irr::video::SMaterial::SMaterial()’:
/home/Skinney/C++/Irrlicht/include/SMaterial.h:318: warning: ‘irr::video::SMaterial::<anonymous union>::<anonymous struct>::Texture2’ will be initialized after
/home/Skinney/C++/Irrlicht/include/SMaterial.h:253: warning:   ‘irr::video::E_MATERIAL_TYPE irr::video::SMaterial::MaterialType’
/home/Skinney/C++/Irrlicht/include/SMaterial.h:242: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/SMaterial.h:351: warning: ‘irr::video::SMaterial::<anonymous union>::<anonymous struct>::BackfaceCulling’ will be initialized after
/home/Skinney/C++/Irrlicht/include/SMaterial.h:337: warning:   ‘bool irr::video::SMaterial::<anonymous union>::<anonymous struct>::GouraudShading’
/home/Skinney/C++/Irrlicht/include/SMaterial.h:242: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/SMaterial.h:337: warning: ‘irr::video::SMaterial::<anonymous union>::<anonymous struct>::GouraudShading’ will be initialized after
/home/Skinney/C++/Irrlicht/include/SMaterial.h:302: warning:   ‘irr::f32 irr::video::SMaterial::Shininess’
/home/Skinney/C++/Irrlicht/include/SMaterial.h:242: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/SMaterial.h:371: warning: ‘irr::video::SMaterial::<anonymous union>::<anonymous struct>::NormalizeNormals’ will be initialized after
/home/Skinney/C++/Irrlicht/include/SMaterial.h:365: warning:   ‘bool irr::video::SMaterial::<anonymous union>::<anonymous struct>::AnisotropicFilter’
/home/Skinney/C++/Irrlicht/include/SMaterial.h:242: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/S3DVertex.h: In constructor ‘irr::video::S3DVertexTangents::S3DVertexTangents(const irr::core::vector3df&, const irr::core::vector2df&, irr::video::SColor)’:
/home/Skinney/C++/Irrlicht/include/S3DVertex.h:132: warning: ‘irr::video::S3DVertexTangents::TCoords’ will be initialized after
/home/Skinney/C++/Irrlicht/include/S3DVertex.h:129: warning:   ‘irr::video::SColor irr::video::S3DVertexTangents::Color’
/home/Skinney/C++/Irrlicht/include/S3DVertex.h:119: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/matrix4.h: In member function ‘irr::core::vector3df irr::core::matrix4::getRotationDegrees() const’:
/home/Skinney/C++/Irrlicht/include/matrix4.h:323: warning: unused variable ‘D’
/home/Skinney/C++/Irrlicht/include/ISceneNode.h: In constructor ‘irr::scene::ISceneNode::ISceneNode(irr::scene::ISceneNode*, irr::scene::ISceneManager*, irr::s32, const irr::core::vector3df&, const irr::core::vector3df&, const irr::core::vector3df&)’:
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:594: warning: ‘irr::scene::ISceneNode::IsVisible’ will be initialized after
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:579: warning:   ‘irr::s32 irr::scene::ISceneNode::ID’
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:39: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:579: warning: ‘irr::scene::ISceneNode::ID’ will be initialized after
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:570: warning:   ‘irr::scene::ISceneNode* irr::scene::ISceneNode::Parent’
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:39: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:591: warning: ‘irr::scene::ISceneNode::DebugDataVisible’ will be initialized after
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:585: warning:   ‘irr::scene::ITriangleSelector* irr::scene::ISceneNode::TriangleSelector’
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:39: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:585: warning: ‘irr::scene::ISceneNode::TriangleSelector’ will be initialized after
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:561: warning:   ‘irr::core::vector3df irr::scene::ISceneNode::RelativeTranslation’
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:39: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/IGUIElement.h: In constructor ‘irr::gui::IGUIElement::IGUIElement(irr::gui::EGUI_ELEMENT_TYPE, irr::gui::IGUIEnvironment*, irr::gui::IGUIElement*, irr::s32, irr::core::rect<int>)’:
/home/Skinney/C++/Irrlicht/include/IGUIElement.h:359: warning: ‘irr::gui::IGUIElement::Environment’ will be initialized after
/home/Skinney/C++/Irrlicht/include/IGUIElement.h:347: warning:   ‘bool irr::gui::IGUIElement::IsVisible’
/home/Skinney/C++/Irrlicht/include/IGUIElement.h:29: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/IGUIElement.h:350: warning: ‘irr::gui::IGUIElement::IsEnabled’ will be initialized after
/home/Skinney/C++/Irrlicht/include/IGUIElement.h:335: warning:   ‘irr::gui::IGUIElement* irr::gui::IGUIElement::Parent’
/home/Skinney/C++/Irrlicht/include/IGUIElement.h:29: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/IMaterialRenderer.h: At global scope:
/home/Skinney/C++/Irrlicht/include/IMaterialRenderer.h:91: warning: ‘class irr::video::IMaterialRendererServices’ has virtual functions but non-virtual destructor
/home/Skinney/C++/Irrlicht/include/IGPUProgrammingServices.h:75: warning: ‘class irr::video::IGPUProgrammingServices’ has virtual functions but non-virtual destructor
/home/Skinney/C++/Irrlicht/include/irrString.h: In constructor ‘irr::core::string<T>::string() [with T = wchar_t]’:
/home/Skinney/C++/Irrlicht/include/ISceneNode.h:43:   instantiated from here
/home/Skinney/C++/Irrlicht/include/irrString.h:650: warning: ‘irr::core::string<wchar_t>::used’ will be initialized after
/home/Skinney/C++/Irrlicht/include/irrString.h:648: warning:   ‘wchar_t* irr::core::string<wchar_t>::array’
/home/Skinney/C++/Irrlicht/include/irrString.h:31: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/irrArray.h: In constructor ‘irr::core::array<T>::array() [with T = irr::video::S3DVertex2TCoords]’:
/home/Skinney/C++/Irrlicht/include/SMeshBufferLightMap.h:20:   instantiated from here
/home/Skinney/C++/Irrlicht/include/irrArray.h:432: warning: ‘irr::core::array<irr::video::S3DVertex2TCoords>::used’ will be initialized after
/home/Skinney/C++/Irrlicht/include/irrArray.h:431: warning:   ‘irr::u32 irr::core::array<irr::video::S3DVertex2TCoords>::allocated’
/home/Skinney/C++/Irrlicht/include/irrArray.h:25: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/irrArray.h: In constructor ‘irr::core::array<T>::array() [with T = short unsigned int]’:
/home/Skinney/C++/Irrlicht/include/SMeshBufferLightMap.h:20:   instantiated from here
/home/Skinney/C++/Irrlicht/include/irrArray.h:432: warning: ‘irr::core::array<short unsigned int>::used’ will be initialized after
/home/Skinney/C++/Irrlicht/include/irrArray.h:431: warning:   ‘irr::u32 irr::core::array<short unsigned int>::allocated’
/home/Skinney/C++/Irrlicht/include/irrArray.h:25: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/irrArray.h: In constructor ‘irr::core::array<T>::array() [with T = irr::scene::IMesh*]’:
/home/Skinney/C++/Irrlicht/include/SAnimatedMesh.h:20:   instantiated from here
/home/Skinney/C++/Irrlicht/include/irrArray.h:432: warning: ‘irr::core::array<irr::scene::IMesh*>::used’ will be initialized after
/home/Skinney/C++/Irrlicht/include/irrArray.h:431: warning:   ‘irr::u32 irr::core::array<irr::scene::IMesh*>::allocated’
/home/Skinney/C++/Irrlicht/include/irrArray.h:25: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/irrArray.h: In constructor ‘irr::core::array<T>::array() [with T = irr::scene::IMeshBuffer*]’:
/home/Skinney/C++/Irrlicht/include/SMesh.h:20:   instantiated from here
/home/Skinney/C++/Irrlicht/include/irrArray.h:432: warning: ‘irr::core::array<irr::scene::IMeshBuffer*>::used’ will be initialized after
/home/Skinney/C++/Irrlicht/include/irrArray.h:431: warning:   ‘irr::u32 irr::core::array<irr::scene::IMeshBuffer*>::allocated’
/home/Skinney/C++/Irrlicht/include/irrArray.h:25: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/irrArray.h: In constructor ‘irr::core::array<T>::array() [with T = irr::video::S3DVertex]’:
/home/Skinney/C++/Irrlicht/include/SMeshBuffer.h:20:   instantiated from here
/home/Skinney/C++/Irrlicht/include/irrArray.h:432: warning: ‘irr::core::array<irr::video::S3DVertex>::used’ will be initialized after
/home/Skinney/C++/Irrlicht/include/irrArray.h:431: warning:   ‘irr::u32 irr::core::array<irr::video::S3DVertex>::allocated’
/home/Skinney/C++/Irrlicht/include/irrArray.h:25: warning:   when initialized here
/home/Skinney/C++/Irrlicht/include/irrArray.h: In constructor ‘irr::core::array<T>::array() [with T = irr::video::S3DVertexTangents]’:
/home/Skinney/C++/Irrlicht/include/SMeshBufferTangents.h:20:   instantiated from here
/home/Skinney/C++/Irrlicht/include/irrArray.h:432: warning: ‘irr::core::array<irr::video::S3DVertexTangents>::used’ will be initialized after
/home/Skinney/C++/Irrlicht/include/irrArray.h:431: warning:   ‘irr::u32 irr::core::array<irr::video::S3DVertexTangents>::allocated’
/home/Skinney/C++/Irrlicht/include/irrArray.h:25: warning:   when initialized here
anyone know hot to solve this or have the 0.14 version of the engine?[/quote]
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Where are the errors? For the warnings it should help to search the forums, this has been posted several times already. Either don't use -Wall or use -Wno-reorder. Or even better apply my Linux patches and get rid of all this automatically.
Post Reply