Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Ambiguous symbol error with Windows 8 SDK and OPENCV

Hello, I've been trying to compile opencv using vs2012 on Windows 8 and using the master build from OPENCV GITHUB. When I'm building it, I get the following errors:

------ Build started: Project: opencv_traincascade, Configuration: Debug Win32 ------ 9> boost.cpp 9>C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(8534): error C2872: 'ACCESS_MASK' : ambiguous symbol 9> could be 'C:\Program Files (x86)\Windows Kits\8.0\Include\um\winnt.h(8533) : DWORD ACCESS_MASK' 9> or 'D:\Development\opencv_working\modules\core\include\opencv2/core/mat.hpp(59) : ACCESS_MASK'

This is just one of the many ambiguous errors i'm getting for ACCESS_MASK.

Is there any solution or fix to this problem?

Thanks