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

我们两清 提交于 2019-12-11 23:42:38

问题


how to solve #error : Must 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?


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/4677195/how-to-solve-error-must-define-a-target-architecture-in-wince-mfc-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!