How to deal with ” no target architecture ” error?

How to deal with ” no target architecture ” error?

\ TYPE_ALIGNMENT ( _s ) : TYPE_ALIGNMENT ( DWORD )) #elif !defined (RC_INVOKED) #error “No Target Architecture” #endif You have #included that header, possibly indirectly by including another header. You can tell VS2012 to list all the includes it uses by setting “Show Includes” to yes in the Properties | C/C++ | Advanced project menu.

How many characters are in no target architecture defined?

I fixed mine on a project that compile without any problem but after a crash out of nowhere cropped up this same error. The content must be between 30 and 50000 characters. …

Why is there no target architecture in C + +?

Another reason for the error (amongst many others that cropped up when changing the target build of a Win32 project to X64) was not having the C++ 64 bit compilers installed as noted at the top of this page. Further to philipvr’s comment on child headers, (in my case) an explicit include of winnt.h being unnecessary when windows.h was being used.

How to remove no target arch error in C + +?

The Windows.h is huge, it defines macros (many of them remove the No target arch error) and includes many other headers.

\\ TYPE_ALIGNMENT ( _s ) : TYPE_ALIGNMENT ( DWORD )) #elif !defined (RC_INVOKED) #error “No Target Architecture” #endif You have #included that header, possibly indirectly by including another header. You can tell VS2012 to list all the includes it uses by setting “Show Includes” to yes in the Properties | C/C++ | Advanced project menu.

I fixed mine on a project that compile without any problem but after a crash out of nowhere cropped up this same error. The content must be between 30 and 50000 characters. …

Another reason for the error (amongst many others that cropped up when changing the target build of a Win32 project to X64) was not having the C++ 64 bit compilers installed as noted at the top of this page. Further to philipvr’s comment on child headers, (in my case) an explicit include of winnt.h being unnecessary when windows.h was being used.

The Windows.h is huge, it defines macros (many of them remove the No target arch error) and includes many other headers.