I have the following C++ code:
#include #include // per http://www.cplusplus.com/reference/clibrary/cmath/abs/ // snip .
In my cases, I solved the problem when using the labs() instead of abs().
labs()
abs()