Что вызывает «C2872 'ACCESS_MASK': неоднозначный символ»? ⇐ C++
Что вызывает «C2872 'ACCESS_MASK': неоднозначный символ»?
I am having an error with my Visual Studio 2015 C++ project that occurs 39 times, which states:
C2872 'ACCESS_MASK': ambiguous symbol
My issue is that the 'files' in which these are occurring are all Windows files, such as:
winnt.h
winuser.h
winreg.h
The include section of one of the projects .h file is as follows:
#pragma once; #include #include #include #include //Background modeling header files #include "opencv2/imgcodecs.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/videoio.hpp" #include #include #include using namespace cv; and the other .h file has the following includes:
#include #include //OpenNI using namespace cv; #include #include using namespace std ; Is there perhaps an error due to having "using namespace ..." more than once?
The only other error that I am encountering is also from the winnt.h file, I am not sure if it is related but have included it just in case, and it is as follows :
C1189 #error: "No Target Architecture"
I have tried changing around the included Windows files, as well as the using namespace cv, as some others have suggested, but have had no success.
Источник: https://stackoverflow.com/questions/393 ... ous-symbol
I am having an error with my Visual Studio 2015 C++ project that occurs 39 times, which states:
C2872 'ACCESS_MASK': ambiguous symbol
My issue is that the 'files' in which these are occurring are all Windows files, such as:
winnt.h
winuser.h
winreg.h
The include section of one of the projects .h file is as follows:
#pragma once; #include #include #include #include //Background modeling header files #include "opencv2/imgcodecs.hpp" #include "opencv2/imgproc.hpp" #include "opencv2/videoio.hpp" #include #include #include using namespace cv; and the other .h file has the following includes:
#include #include //OpenNI using namespace cv; #include #include using namespace std ; Is there perhaps an error due to having "using namespace ..." more than once?
The only other error that I am encountering is also from the winnt.h file, I am not sure if it is related but have included it just in case, and it is as follows :
C1189 #error: "No Target Architecture"
I have tried changing around the included Windows files, as well as the using namespace cv, as some others have suggested, but have had no success.
Источник: https://stackoverflow.com/questions/393 ... ous-symbol
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение