error building irrlicht 1.1 with dev c++ 4.9.9.2

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
QtGraphDev
Posts: 46
Joined: Mon Jun 12, 2006 9:42 am

error building irrlicht 1.1 with dev c++ 4.9.9.2

Post by QtGraphDev »

i'm trying to compile and build the latest irrlicht 1.1 release using Dev c++ 4.9.9.2 and the directX 9.0c devpak made by g-production but i got finally the link error
"C:\irrlicht-1.1\source\Irrlicht\Makefile.win [Build Error] [Irrlicht.dll] Error 255 "
i got the same error when trying irrlicht 1.0.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

this is a problem with ms-dos not allowing >255 chars on a command line.
go into the build log, copy the failed command, replace the object file names with wildcards... so "a/a.o a/b.o a/c.o b/a.o b/b.o" becomes "a/*.o b/*.o", then run the last step manually through dos. or use code::blocks, which is actively being developed unlike dev-cpp
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
QtGraphDev
Posts: 46
Joined: Mon Jun 12, 2006 9:42 am

Post by QtGraphDev »

ok it compiled and builded succesuffly thanks to that.
but now can i use this newly created irrlicht.dll with any irrlicht app, i mean compiled and linked with VS 2005 or VS 2003 or MinGW ?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Are you using Win98 to compile your code, or why doesn't this happen to me when compiling with dev-c++?
FrostLord
Posts: 4
Joined: Mon Apr 11, 2005 5:04 pm

Post by FrostLord »

Want something more weird ? This is what happens when I try to compile IrrLicht 1.1 source in DevC++ 4.9.9.2 with GCC 3.4 -.-"

In file included from CSoftwareDriver.h:9,
from CSoftwareDriver.cpp:5:
CNullDriver.h:345: error: ISO C++ forbids declaration of `IAttributes' with no type
CNullDriver.h:345: error: invalid use of `::'
CNullDriver.h:345: error: `IAttributes' declared as a `virtual' field
CNullDriver.h:345: error: expected `;' before '*' token
CNullDriver.h:348: error: `irr::io::IAttributes' has not been declared
CNullDriver.h:348: error: ISO C++ forbids declaration of `attributes' with no type

CNullDriver.h:255: error: conflicting return type specified for `virtual const irr::core::matrix4& irr::video::CNullDriver::getTransform(irr::video::E_TRANSFORMATION_STATE)'
C:/Dev-Cpp/include/irrlicht/IVideoDriver.h:157: error: overriding `virtual irr::core::matrix4 irr::video::IVideoDriver::getTransform(irr::video::E_TRANSFORMATION_STATE)'

CNullDriver.h: In member function `bool irr::video::CNullDriver::SSurface::operator<(const irr::video::CNullDriver::SSurface&) const':
CNullDriver.h:405: error: 'class irr::video::ITexture' has no member named 'getName'
CNullDriver.h:405: error: 'class irr::video::ITexture' has no member named 'getName'
CNullDriver.h: In constructor `irr::video::CNullDriver::SDummyTexture::SDummyTexture(const char*)':
CNullDriver.h:417: error: no matching function for call to `irr::video::ITexture::ITexture(const char*&)'
C:/Dev-Cpp/include/irrlicht/ITexture.h:94: note: candidates are: irr::video::ITexture::ITexture()
C:/Dev-Cpp/include/irrlicht/ITexture.h:94: note: irr::video::ITexture::ITexture(const irr::video::ITexture&)

CSoftwareDriver.cpp: In member function `virtual void irr::video::CSoftwareDriver::setViewPort(const irr::core::rect<irr::s32>&)':
CSoftwareDriver.cpp:308: error: 'class irr::core::rect<irr::s32>' has no member named 'getSize'

CSoftwareDriver.cpp: In function `irr::video::IVideoDriver* irr::video::createSoftwareDriver(const irr::core::dimension2d<irr::s32>&, bool, irr::io::IFileSystem*, irr::video::IImagePresenter*)':
CSoftwareDriver.cpp:761: error: cannot allocate an object of type `irr::video::CSoftwareDriver'
CSoftwareDriver.cpp:761: error: because the following virtual functions are abstract:
C:/Dev-Cpp/include/irrlicht/IVideoDriver.h:699: error: virtual irr::s32 irr::video::IVideoDriver::addMaterialRenderer(irr::video::IMaterialRenderer*)

make.exe: *** [CSoftwareDriver.obj] Error 1


I can fix the first problem (CNullDriver.h:345: error: ISO C++ forbids declaration of `IAttributes' with no type) by adding "IAttriutes.h", but I still get the "conflicting return error...

Ah, and DevC++ complains about two missing files "CImageLoaderMisc.cpp" and "CImageLoaderMisc.h"... but I suppose these have been removed, because I can't find them in the SVN repositry...
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Ok, IAttributes have been added, the two files were removed from the project (came from my development version, just like the dev-c++ debug settings). But I don't understand the other problem, all declarations are the same.
Post Reply