Fatal error: “No Target Architecture” in Visual Studio

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

    _WIN32 identifier is not defined.

    use #include

    MSVS generated projects wrap this include by generating a local "targetver.h"which is included by "stdafx.h" that is comiled into a precompiled-header through "stdafx.cpp".

    EDIT : do you have a /D "WIN32" on your commandline ?

提交回复
热议问题