Fatal error: “No Target Architecture” in Visual Studio

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

    At the beginning of the file you are compiling, before any include, try to put ONE of these lines

    #define _X86_
    #define _AMD64_
    #define _ARM_
    

    Choose the appropriate, only one, depending on your architecture.

提交回复
热议问题