I
Iggy495
Guest
Hi,
I have recently migrated my code from VS2013 to VS2015. I am getting below error in during compilation.
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2065: 'x': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2433: '_Translates_Win32_to_HRESULT_': '__forceinline' not permitted on data declarations
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2131: expression did not evaluate to a constant
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): note: failure was caused by non-constant arguments or reference to a non-constant symbol
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): note: see usage of 'x'
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2146: syntax error: missing ';' before identifier 'HRESULT'
OPUS MAKE: Shell line exit status 2. Stop.
The header file inclusion in my cpp file is as below.
#include <windows.h>
#include<Winerror.h>
#include <tchar.h>
#include <wininet.h> // needed for INTERNET_CERTIFICATE_INFO
#include <wincrypt.h>
Please note I am using make file to build my project.
Any help for this issue is greatly appreciated.
Thanks in advance.
Continue reading...
I have recently migrated my code from VS2013 to VS2015. I am getting below error in during compilation.
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2065: 'x': undeclared identifier
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2433: '_Translates_Win32_to_HRESULT_': '__forceinline' not permitted on data declarations
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2131: expression did not evaluate to a constant
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): note: failure was caused by non-constant arguments or reference to a non-constant symbol
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): note: see usage of 'x'
C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0\shared\winerror.h(27990): error C2146: syntax error: missing ';' before identifier 'HRESULT'
OPUS MAKE: Shell line exit status 2. Stop.
The header file inclusion in my cpp file is as below.
#include <windows.h>
#include<Winerror.h>
#include <tchar.h>
#include <wininet.h> // needed for INTERNET_CERTIFICATE_INFO
#include <wincrypt.h>
Please note I am using make file to build my project.
Any help for this issue is greatly appreciated.
Thanks in advance.
Continue reading...