Problem with equalsByUlp since Irrlicht 1.8

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.
Memorial76
Posts: 103
Joined: Mon Aug 10, 2009 8:22 pm
Location: France

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by Memorial76 »

Allright, I'll try to make a small example project using it. Thanks
My Gui/Event receiver Architecture Pattern (GERAP):
http://irrgerap.sourceforge.net/

My Blog about my "ProjectOne"
http://memorial76-project-one.blogspot.fr/
Memorial76
Posts: 103
Joined: Mon Aug 10, 2009 8:22 pm
Location: France

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by Memorial76 »

It's done, sorry for the delay.

It's available here
I've written a small example project and packed it in .7z.
All files are commented so that it should be quite understandable.

Please do not hesitate to correct, suggest or feedback

Thank you all for your interest.
My Gui/Event receiver Architecture Pattern (GERAP):
http://irrgerap.sourceforge.net/

My Blog about my "ProjectOne"
http://memorial76-project-one.blogspot.fr/
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by CuteAlien »

*sigh* I don't care about the files and comments. I only care about any example to reproduce this problem which compiles!!!
And now you have created a complex project with a .sln file... which depends on the other files which you removed by now and some IrrGerap.vcxproj which never existed (or which you at least never checked in).

reproducible... I just need a _complete_ project to have that bug ... now I have again something which I can't use.

Please before this continues ad infinitum... do test it next time in a new folder - not the one you use on your harddisk. So such problems are found before I download for the 4th time to find an example which I can't use to reproduce the compile errror.

I still appreciate you try ... but... oh well ... I'm sure next try it'll work :-)
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
Memorial76
Posts: 103
Joined: Mon Aug 10, 2009 8:22 pm
Location: France

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by Memorial76 »

Ok, sorry for that, I just forgot to add the Irrgerap project itself. Irrgerap compiles as a library used by the IrrgerapDemo project.
Now I've uploaded both in one .7z file.
I tried to compile in a different folder and it worked. Then I restored the equalsByUlp function in maths.h and I got the problem.

I hope this time it's allright...
My Gui/Event receiver Architecture Pattern (GERAP):
http://irrgerap.sourceforge.net/

My Blog about my "ProjectOne"
http://memorial76-project-one.blogspot.fr/
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by CuteAlien »

Thanks, this time it works. The problem is that you compile for clr (managed code) which is something we've never tested and works a little different to normal c++.

I'm currently trying to figure out if I can change that in 1.8 without breaking binary compatibility or if this can only be fixed in 1.9 (I think it's possible, but I'm always a little uncertain about that stuff).
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
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by CuteAlien »

Fixed in revision 4393 for Irrlicht 1.8, so it will be in Irrlicht 1.8.1.
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
Memorial76
Posts: 103
Joined: Mon Aug 10, 2009 8:22 pm
Location: France

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by Memorial76 »

Wow! what a fast answer and solution! Thanks!

Well, i'm not quite sure to know the difference between clr and normal c++. I'm almost noob in programming and learn all by myslef you know... but thanks anyway
My Gui/Event receiver Architecture Pattern (GERAP):
http://irrgerap.sourceforge.net/

My Blog about my "ProjectOne"
http://memorial76-project-one.blogspot.fr/
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by CuteAlien »

When you compile with clr you create code for the virtual machine of the .NET framework. When you just make desktop applications you don't need that. But it's certainly nicer for Irrlicht to support that as well as long as it doesn't cause trouble.
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
Memorial76
Posts: 103
Joined: Mon Aug 10, 2009 8:22 pm
Location: France

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by Memorial76 »

Allright, thanks a lot
My Gui/Event receiver Architecture Pattern (GERAP):
http://irrgerap.sourceforge.net/

My Blog about my "ProjectOne"
http://memorial76-project-one.blogspot.fr/
LesPaul75
Posts: 35
Joined: Tue Jan 22, 2013 8:27 am

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by LesPaul75 »

CuteAlien wrote:Fixed in revision 4393 for Irrlicht 1.8, so it will be in Irrlicht 1.8.1.
I'm having the "equalsByUlp" problem with the version that I just downloaded tonight. I assume that means that what I just downloaded is still 1.8 (as opposed to 1.8.1 with this fix)... but this thread is nearly a year old, so I guess I assumed 1.8.1 was old news.

If it matters, I'm using a very old build environment (VS2005). Seems like the problem is related to that, since Memorial76 was also building an old project.

I do not have "Float_t" redefined in my code and I never use the "equalsByUlp" method. There was no link error in 1.7. I guess I will just go with removing "equalsByUlp" for now.
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with equalsByUlp since Irrlicht 1.8

Post by CuteAlien »

1.8.1 is not yet released. We should probably have pushed out a new version by now, but a) I found no weekend for that until now and b) there's still some problems in there which I would have preferred to have fixed first.

But you can alawys download the svn version and compile it yourself (really easy, don't be scared of that) or use a nightly build.
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
Post Reply