Does not know 'isdigit' in irrString.h.
I REALLY don't understand this, because "trunk 5721" compiled fine,
and there are no differences to cause this sudden change.
( tryed it from gcc_6.4.0 up ).
I have added
#if defined(__GNUC__)
#include <cctype> // isdigit
#endif
at the beginning of irrString.h
[fixed]gcc compile error in irrString.h ("trunk 5723")
Re: gcc compile error in irrString.h ("trunk 5723")
Thanks for reporting! It's fixed now in r5727.
There was a change - the isdigit is used in a new function I added to strings (eraseTrailingFloatZeros). And Irrlicht is not using isdigit from cctype as it doesn't want that dependency (I also didn't know...). It even undef's them (which I'm pretty sure is a bad idea - why ever undef a standard function, that only leads to troubles...).
It likely compiled on VS (and on Linux as well I think) because the cctype is then included again in some other header.
edit: I also kicked out those #undef's now.
There was a change - the isdigit is used in a new function I added to strings (eraseTrailingFloatZeros). And Irrlicht is not using isdigit from cctype as it doesn't want that dependency (I also didn't know...). It even undef's them (which I'm pretty sure is a bad idea - why ever undef a standard function, that only leads to troubles...).
It likely compiled on VS (and on Linux as well I think) because the cctype is then included again in some other header.
edit: I also kicked out those #undef's now.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm