'min (& max) not a member of std' errors when building OpenCV 2.4.6 on Windows 8 for Visual Studio 2012

后端 未结 3 762
眼角桃花
眼角桃花 2020-12-10 01:23

I\'m trying to build OpenCV 2.4.6 on Windows 8 in Visual Studio 2012. Having downloaded the source from https://github.com/Itseez/opencv I generate (leaving the default conf

3条回答
  •  感情败类
    2020-12-10 02:15

    You probably need to #define NOMINMAX. Try putting it before any other includes.
    If that helps, then put in the you project's preprocessor defines.

    There's lots of info about this, just search for NOMINMAX. Here's one post about it.

提交回复
热议问题