When I try to compile my c++ project using Visual Studio 2010 in either Win32 or x64 mode I get the following error:
>C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(135): fatal error C1189: #error : "No Target Architecture"
// winnt.h: lines 127-136, MSVS says this is an inactive preprocessor block
#define PROBE_ALIGNMENT( _s ) TYPE_ALIGNMENT( DWORD )
#define PROBE_ALIGNMENT( _s ) (TYPE_ALIGNMENT( _s ) > TYPE_ALIGNMENT( DWORD ) ? \
TYPE_ALIGNMENT( _s ) : TYPE_ALIGNMENT( DWORD ))
#error "No Target Architecture"
error : "No Target Architecture"
#include <windows.h> instead of
windows.h wikipedia page:
There are a number of child header files that are automatically included with
windows.h. Many of these files cannot simply be included by themselves (they are not self-contained), because of dependencies.
windef.h is one of the files automatically included with