C++ compilation Error C2371 'WCHAR': redefinition; different basic types
Hello All,
We are facing the below error in C++ code compilation which is basically a windows file "odbcss.h" we dont think we should change this file.
could you please check this and let us know how to fix this issue that will be great help?
code spinet
#ifdef UNICODE
typedef wchar_t DBCHAR;
#else
typedef char DBCHAR; //line 438
#endif
error: Error C2371 'WCHAR': redefinition; different basic types
file : c:\program files (x86)\windows kits\10\include\10.0.19041.0\um\odbcss.h line : 438
we have gone through the below link for similar kind of issue but there few suggestion but no solution worked to fix the issue.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/078fdbf0-7e61-4654-8ece-837fb5a74e2e/wchar-redefinition-in-odbcssh?forum=vcgeneral
Thanks,
Shreekant