WDK编译问题,解决USE_NATIVE_EH has an invalid value

最近看了一下Windows高级调试,在联系书中的例子时(Chapter1),遇到如下问题:

C:\AWD\Chapter1>build /ZCc
BUILD: Compile and Link for x86
BUILD: Start time: Sun Oct 14 20:58:35 2012
BUILD: Examining c:\awd\chapter1 directory for files to compile.
    c:\awd\chapter1 Invalidating OACR warning log for 'root:x86chk'
BUILD: Compiling and Linking c:\awd\chapter1 directory
Configuring OACR for 'root:x86chk' - <OACR on>
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>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKE
DIR_RELATIVE_TO_BASEDIR= failed - rc = 2

BUILD: Finish time: Sun Oct 14 20:58:35 2012
BUILD: Done

    0 files compiled - 2 Errors


貌似是说 USE_NATIVE_EH 无效,解决办法如下:

将Source文件的的:

    USE_NATIVE_EH=SYNC
修改为

    USE_NATIVE_EH=ASYNC

 

posted on 2012-10-14 21:00  人间爱  阅读(669)  评论(0编辑  收藏  举报

导航