Ask Your Question

ice031's profile - activity

2017-05-07 19:05:54 -0600 received badge  Famous Question (source)
2016-02-19 11:36:24 -0600 received badge  Notable Question (source)
2015-10-05 08:24:18 -0600 received badge  Popular Question (source)
2013-11-07 13:45:14 -0600 received badge  Student (source)
2013-11-06 02:00:13 -0600 asked a question 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

2013-10-29 04:02:59 -0600 received badge  Editor (source)
2013-10-29 04:02:34 -0600 asked a question Building latest opencv source from github LNK2005 error?

Hello,

I've downloaded the latest master source files and after configuring and generating the solution file from cmake. I get several Lnk2005 errors: 16>window_w32.obj : error LNK2005: _cvCreateTrackbar already defined in window.obj 16>window_w32.obj : error LNK2005: _cvCreateTrackbar2 already defined in window.obj 16>window_w32.obj : error LNK2005: _cvDestroyAllWindows already defined in window.obj 16>window_w32.obj : error LNK2005: _cvDestroyWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvGetTrackbarPos already defined in window.obj 16>window_w32.obj : error LNK2005: _cvGetWindowHandle already defined in window.obj 16>window_w32.obj : error LNK2005: _cvGetWindowName already defined in window.obj 16>window_w32.obj : error LNK2005: _cvInitSystem already defined in window.obj 16>window_w32.obj : error LNK2005: _cvMoveWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvNamedWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvResizeWindow already defined in window.obj 16>window_w32.obj : error LNK2005: _cvSetMouseCallback already defined in window.obj 16>window_w32.obj : error LNK2005: _cvSetTrackbarPos already defined in window.obj 16>window_w32.obj : error LNK2005: _cvShowImage already defined in window.obj 16>window_w32.obj : error LNK2005: _cvStartWindowThread already defined in window.obj 16>window_w32.obj : error LNK2005: _cvWaitKey already defined in window.obj 16> Creating library E:/opencv-working/build_x86/lib/Debug/opencv_highgui300d.lib and object E:/opencv-working/build_x86/lib/Debug/opencv_highgui300d.exp 16>E:\opencv-working\build_x86\bin\Debug\opencv_highgui300d.dll : fatal error LNK1169: one or more multiply defined symbols found

I've checked the cmake using all default settings with the exception of using tbb and CUDA. Any help in resolving this issue would be great.