Class overloading

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
fyyar
Posts: 2
Joined: Mon Feb 16, 2004 3:40 am

Class overloading

Post by fyyar »

Hi! I have a little problem. I wish to overload the classes CIrrDeviceWin32 and CGUIEnvironment in order change some small details that does not fit in with my plan (to become the supreme ruler of the universe!). However, I get lots of unresolved externals when I do this. Is it so that the only classes I can inherit from are those listed in irrlicht.h ? If so, is there anyway around this? Without having to recompile the engine? Error example below:

Testing error LNK2001: unresolved external symbol "public: virtual void __thiscall irr::CIrrDeviceWin32::present(class irr::video::ISurface *)" (?present@CIrrDeviceWin32@irr@@UAEXPAVISurface@video@2@@Z)

This goes on for all the other member functions as well.
42

Re: Class overloading

Post by 42 »

I wish to overload the classes CIrrDeviceWin32 and CGUIEnvironment in order change some small details that does not fit in with my plan (to become the supreme ruler of the universe!). However, I get lots of unresolved externals when I do this. Is it so that the only classes I can inherit from are those listed in irrlicht.h ? If so, is there anyway around this? Without having to recompile the engine? Error example below:
As You correctly presumed there is no other way than to compile the whole irrlicht project. mementarily there's no possibility to define the device from outside irrlicht.
but recompiling is not hard there should be quiet a few hints in the forum if you'd have problems.

42
fyyar
Posts: 2
Joined: Mon Feb 16, 2004 3:40 am

Post by fyyar »

Thanx! I don't think it is hard to recompile it, it's just that I don't want to change around a lot and then run into to trouble when 0.5 is released. Oh well...
[dx/x]=HUNT3R
Posts: 271
Joined: Sat Aug 23, 2003 5:52 pm
Location: Hurricane Central, Florida

Post by [dx/x]=HUNT3R »

Overload? Perhaps you mean you want to override some of the member functions of those classes :wink: v0.5 is out today, just replace the code with yours...
Post Reply