Fatal error: “No Target Architecture” in Visual Studio

前端 未结 11 2255
慢半拍i
慢半拍i 2020-11-29 05:52

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 SDK

11条回答
  •  醉话见心
    2020-11-29 06:21

    Another cause of this can be including a header that depends on windows.h, before including windows.h.

    In my case I included xinput.h before windows.h and got this error. Swapping the order solved the problem.

提交回复
热议问题