Fix the issue of missing imshow icons when linking OpenCV as a static library (https://github.com/opencv/opencv-python/issues/585)
Thank for fix it, compiled successfully using Visual Studio. But I should add a compiler option "/Zc:cplusplus", otherwise __cplusplus value will alway be 199711L and cause compilation errors. #if __cplusplus < 201703L # define MAGICK_UNARY_FUNCTION_IMAGE_REF_BASE \ : public std::unary_function<Image&,void> #else # define MAGICK_UNARY_FUNCTION_IMAGE_REF_BASE #endif // if __cplusplus < 201703L
Thank for fix it, compiled successfully using Visual Studio. But I should add a compiler option "/Zc:cplusplus", otherwise cplusplus value will alway be 199711L and cause compilation errors. #if __cplusplus < 201703L # define MAGICK_UNARY_FUNCTION_IMAGE_REF_BASE \ : public std::unary_function<Image&,void> #else # define MAGICK_UNARY_FUNCTION_IMAGE_REF_BASE #endif // if __cplusplus < 201703L
Yes, "std::unary_function" cause many compilation errors under C++17 Visual Studio 2019.