From 38d73123c1fbca8e81748e2ed9bd1d71ec4e92fb Mon Sep 17 00:00:00 2001 From: Andrei Costinescu Date: Sun, 25 Mar 2018 20:39:29 +0200 Subject: [PATCH] #include in cv2.cpp My build fails with the error: "C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/7.2.0/include/c++/cmath:1136:11: error: '::hypot' has not been declared". I have tried to fix it by adding "#include " before the line "#include " but then the build has failed with the error: "C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/7.2.0/include/c++/math.h:91:12:: error: 'std::_hypot' has not been declared". Adding "#include " allowed me to build opencv. --- modules/python/src2/cv2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/python/src2/cv2.cpp b/modules/python/src2/cv2.cpp index fab60fd03f..8ed6478bcc 100644 --- a/modules/python/src2/cv2.cpp +++ b/modules/python/src2/cv2.cpp @@ -4,6 +4,7 @@ #pragma warning(push) #pragma warning(disable:5033) // 'register' is no longer a supported storage class #endif +#include #include #if defined(_MSC_VER) && (_MSC_VER >= 1800) #pragma warning(pop)