“没有目标体系结构"错误,任何人都知道如何纠正此错误 [英] "No target architecture" error,anyone know how to correct this error

查看:146
本文介绍了“没有目标体系结构"错误,任何人都知道如何纠正此错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将32位驱动程序更改为64位,这是问题所在,我无法纠正此问题:
错误显示如下:

I am tryig to change a 32bits driver to 64bits,here is the problem, i can not correct this:
the error shows below:

1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Dispatch.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Init.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Pnp.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Usb.cpp
1>D:\WinDDK\7600.16385.1\inc\api\ntdef.h(155): fatal error C1189: #error : "No Target Architecture"
1> Generating Code...


似乎我没有设置体系结构的版本,但是我已经通过预处理程序设置了.
我使用了VS2010&DDK.
那么问题出在哪里呢?感谢您的帮助.


It seemed that I didn''t set the version of architecture, but I already set that by preprocessor.
I used VS2010&DDK.
So where is the problem? I appreciate your help.

推荐答案

我没有DDK的副本,但我的建议是查看D:\ WinDDK \ 7600.16385.1 \ 155行周围的inc \ api \ ntdef.h,尝试找出尚未设置的预处理程序定义.
I don''t have a copy of the DDK but my suggestion would be to look in D:\WinDDK\7600.16385.1\inc\api\ntdef.h around line 155 and try to figure out what preprocessor definition you have not set.


DDK希望设置一些环境变量,请参见:
http://mcdermottcybersecurity.com/articles/64-bit-device-driver-development [ ^ ]

现在,您可以使用DDK使用的构建工具,该工具已经为您设置了这些变量,或者您可以通过Studio中的任何方式(运行脚本作为事前事件或其他方式)自己设置它们.
The DDK expects some environment variables to be set, see this:
http://mcdermottcybersecurity.com/articles/64-bit-device-driver-development[^]

Now, you can use the building tools that the DDK uses which already set these variables for you or you can just set them yourself by whatever means in Studio (run script as pre-event or whatever).


这篇关于“没有目标体系结构"错误,任何人都知道如何纠正此错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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