Closed Tobias-Fischer closed 9 years ago
Hi all, I cannot compile the latest version of ikart on our machine. Could you please apply the following diff?
ikart
Thanks, Tobias
diff --git a/src/iKartSpeedTest/main.cpp b/src/iKartSpeedTest/main.cpp index ff7f39e..8716c53 100644 --- a/src/iKartSpeedTest/main.cpp +++ b/src/iKartSpeedTest/main.cpp @@ -72,7 +72,7 @@ Windows, Linux #include <yarp/dev/PolyDriver.h> #include <iCub/DebugInterfaces.h> -#include <math.h> +#include <cmath> #include <iostream> #include <iomanip> @@ -138,7 +138,7 @@ void CommandClass::stop() bool near(double a, double b) { - if (abs(a-b)<0.0001) return true; + if (std::abs(a-b)<0.0001) return true; else return false; }
fixed by 50d8f6b33d
Hi all, I cannot compile the latest version of
ikart
on our machine. Could you please apply the following diff?Thanks, Tobias