Fatal error: “No Target Architecture” in Visual Studio

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

    Use #include instead of #include .

    From the 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 windows.h.

提交回复
热议问题