You are here

Bug in .../mrpt/libs/base/src/math/math.cpp ?

2 posts / 0 new
Last post
Mike Davies
Mike Davies's picture
Bug in .../mrpt/libs/base/src/math/math.cpp ?

Got the following error while trying to compile mrpt-0.9.1 on Linux for a Cyrix III processor.

/home/mike/work/mrpt/libs/base/src/math/math.cpp: In function 'bool mrpt::math::isFinite(long double)':
/home/mike/work/mrpt/libs/base/src/math/math.cpp:1931: error: 'finite' was not declared in this scope

Looking at adjacent code - for other compiler options etc; I think this line should be ...

return isfinite(f);

Mike

jlblanco
jlblanco's picture
Thanks Mike! I've fixed it in

Thanks Mike!
I've fixed it in SVN HEAD: http://code.google.com/p/mrpt/source/detail?r=2208

Let me know is you find other errors for your compiler. In Ubuntu's GCC for x86/amd64 there're both, isfinite() and finite()... If you prefer to have direct write access to the SVN to fix/add small things like that, drop me an email.

JL

Log in or register to post comments
Subscribe to Comments for "Bug in .../mrpt/libs/base/src/math/math.cpp ?"