如何解决#error:必须在Wince MFC应用程序中定义目标体系结构? [英] how to solve #error : Must define a target architecture in wince mfc application?

查看:85
本文介绍了如何解决#error:必须在Wince MFC应用程序中定义目标体系结构?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决#error:必须在wince mfc应用程序中定义目标体系结构?我知道我们需要使用设备头文件和库,但是我该如何使用呢?

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?

推荐答案

大概是因为您正在尝试针对(台式机)Windows SDK构建应用程序.最简单的操作是创建一个新的"Win32 Smart Device"项目并将代码添加到其中.

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.

或者,检查项目属性-> C/C ++下的为体系结构编译"设置,并确保已为适当的体系结构设置了该

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

这篇关于如何解决#error:必须在Wince MFC应用程序中定义目标体系结构?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆