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
Same issue on Win 8.1 RTM. opencv_traincascade is the only project that fails with the above conflict. I get 42 build errors on that project, though. I cloned the trunk of the opencv repo yesterday (Nov 6 2013). If there is indeed a conflict between Windows Kits and mat.hpp, this could be a nuisance whenever we need to use mat.hpp. Would be good to have a clarification from anyone in the know.