Reputation: 112
After VS19 got updated to 16.3.8, I cannot build my project and I receive the following error:
C:\Program Files\Microsoft SDKs\Kinect\v2.0_1409\inc\Kinect.h(8574,28): error C2872: 'boolean': ambiguous symbol
C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared\rpcndr.h(193,23): message : could be 'unsigned char boolean'
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.23.28105\include\concepts(213,9): message : or 'bool std::boolean'
I have tried to check the kinect.h header, but I do not have permissions to modify it and I do not want to mess with something that I am not familiar with. It used to be working before the update (VS19 16.0.0). I have also tried to clean, reboot, and double checked for any using namespace but the error is still there.
Based on the error:
The concepts file includes the following line
#define _STL_BOOLEAN_CONCEPT boolean
The rpcndr.h
typedef unsigned char boolean;
and then kinect.h
virtual /* [propget] */ HRESULT STDMETHODCALLTYPE get_IsInertial(
/* [annotation][out][retval] */
_Out_ boolean *value) = 0;
Upvotes: 0
Views: 867
Reputation: 112
Based on the comments and by setting the C++ Language Standard to C++ 17, I was able to successfully built my project.
Upvotes: 1