开发者

how to solve #error : Must define a target architecture in wince mfc application?

开发者 https://www.devze.com 2023-02-04 16:43 出处:网络
how to solve #error : M开发者_开发知识库ust define a target architecture in wince mfc application?i got to know that we need to use device header and libraries but how can i use that?Presumably, the e

how to solve #error : M开发者_开发知识库ust define a target architecture in wince mfc application?i got to know that we need to use device header and libraries but how can i use that?


Presumably, the error is because you're trying to build the application against the (desktop) Windows SDK. The easiest thing to do is to create a new "Win32 Smart Device" project and add your code to it.

Alternatively, check the "Compile for architecture" setting under project properties -> C/C++ and ensure that it is set for the appropriate architecture.


I think you need to globally define some macro like _X86_ in the project options, but I'm not sure.

0

精彩评论

暂无评论...
验证码 换一张
取 消