[fixed] allow external use of createLimitReadFile

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
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

[fixed] allow external use of createLimitReadFile

Post by loki1985 »

first: thanks for the new filesystem API, i just finished adding a custom binary format, and it was piece of cake...

but: for great simplicity i wanted to use createLimitReadFile(), but this is not available through the API (or at least not linkable).

i worked around this by integrating a copy of the CLimitReadFile class into my project, but this is pretty dirty.

please make createLimitReadFile() somehow accessable for people who want to extend irrlicht without changing/extending the actual source of it.
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

opened feature request in tracker (ID 2709695)

http://sourceforge.net/tracker/?func=de ... tid=540679
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

this has been marked as fixed in the tracker, thanks for this. but after recompiling the library, it still does not work for me.

gcc still complains:

Code: Select all

CIMGArchiveLoader.cpp:164: undefined reference to `irr::io::createLimitReadFile(irr::core::string<char, irr::core::irrAllocator<char> > const&, irr::io::IReadFile*, long, long)'
CTXDArchiveLoader.o: In function `ZN10CTXDReader8openFileEi':
CTXDArchiveLoader.cpp:102: undefined reference to `irr::io::createLimitReadFile(irr::core::string<char, irr::core::irrAllocator<char> > const&, irr::io::IReadFile*, long, long)'
am i doing something wrong?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Did you use SVN/trunk and did you recompile everything? In my version the method looks ok.
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

i made a fresh checkout, and a clean recompile.

i will take a more detailed look when i find some time, but i think i have done it all correctly.
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

I think you should look at the actual change. The function was added in this particular change is a virtual method of the IFileSystem interface. Your code clearly expects it to be a free function. I don't know where you're getting the declaration from.

Travis
loki1985
Posts: 214
Joined: Thu Mar 31, 2005 2:36 pm

Post by loki1985 »

thanks, my mistake. since the original free function still existed everything compiled, that made me think it was the correct way.
Post Reply