Fatal error: “No Target Architecture” in Visual Studio

前端 未结 11 2227
慢半拍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:11

    Solve it by placing the following include files and definition first:

    #define WIN32_LEAN_AND_MEAN      // Exclude rarely-used stuff from Windows headers
    
    #include 
    

提交回复
热议问题