wdk 编译错误

njau_qiu 2010-10-29 12:53:14
我刚下个GRMWDK_EN_7600_1.ISO (驱动程序开发包)
然后编译个文件
#include <windows.h>
#include <stdio.h>

int __cdecl wmain (int argc, WCHAR* args[])
{
wprintf ( L"Welcome to Advanced Windows Debugging!!!\n" ) ;
}


然后编译时候有以下错误:
BUILD: Computing Include file dependencies:
c:\awd\chapter1: use_native_eh has an invalid value, change it to 1 (all invalid values act like 1) (SYNC).
c:\awd\chapter1:
BUILD: Examining c:\awd\chapter1 directory for files to compile.
oacr invalidate root:x86chk /autocleanqueue
1>Compiling and Linking c:\awd\chapter1 *************
1>'nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR='
1>c:\winddk\7600.16385.1\bin\makefile.new(362) : fatal error U1050: c:\awd\chapter1: USE_NATIVE_EH has an invalid value, change it to 1.
1>errors in directory c:\awd\chapter1
1>c:\winddk\7600.16385.1\bin\makefile.new(362) : error U1050: c:\awd\chapter1: USE_NATIVE_EH has an invalid value, change it to 1.
1>Stop.
1>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKEDIR_RELATIVE_TO_BASEDIR= failed - rc = 2

哪位高手指点下!
...全文
181 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
finicswang 2010-11-04
  • 打赏
  • 举报
回复
查看c:\awd\chapter1文件,看看能否找到 USE_NATIVE_EH ,把其中某个值设置为1.多试验看看吧
hanshuangfly 2010-10-31
  • 打赏
  • 举报
回复
return
好像也没有添加啊。
曹大夯 2010-10-29
  • 打赏
  • 举报
回复
你的source文件是怎么写的?

21,616

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧