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
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.
#define NOMINMAX
There's lots of info about this, just search for NOMINMAX. Here's one post about it.