diff --git a/libraries/AP_Math/AP_Math.cpp b/libraries/AP_Math/AP_Math.cpp index 9193721946..2db5a00fbe 100644 --- a/libraries/AP_Math/AP_Math.cpp +++ b/libraries/AP_Math/AP_Math.cpp @@ -33,6 +33,7 @@ is_equal(const Arithmetic1 v_1, const Arithmetic2 v_2) template bool is_equal(const int v_1, const int v_2); template bool is_equal(const short v_1, const short v_2); +template bool is_equal(const long v_1, const long v_2); template bool is_equal(const float v_1, const float v_2); template bool is_equal(const double v_1, const double v_2); diff --git a/libraries/AP_Math/vector2.cpp b/libraries/AP_Math/vector2.cpp index 9145d8255d..54a7ae1aff 100644 --- a/libraries/AP_Math/vector2.cpp +++ b/libraries/AP_Math/vector2.cpp @@ -159,5 +159,7 @@ template bool Vector2::is_nan(void) const; template bool Vector2::is_inf(void) const; template float Vector2::angle(const Vector2 &v) const; +template bool Vector2::operator ==(const Vector2 &v) const; + // define for int template bool Vector2::operator ==(const Vector2 &v) const;