sanctuary
驱动牛犊
驱动牛犊
  • 注册日期2007-11-19
  • 最后登录2008-10-09
  • 粉丝0
  • 关注0
  • 积分10分
  • 威望2点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
阅读:3407回复:3

build中的ntdef.h错误。。。

楼主#
更多 发布于:2008-06-02 16:53
我是新手,在学习别人的一个驱动程序。build过程中出现以下问题:

C:\DOCUME~1\ADMINI~1\MYDOCU~1\学习\TDIAND~1>call C:\WINDDK\2600\bin\setenv.bat C:\WINDDK\2600 chk  

C:\DOCUME~1\ADMINI~1\MYDOCU~1\学习\honey\TDIAND~1>build.exe -ceZ
BUILD: Object root set to: ==> objchk
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Examining c:\docume~1\admini~1\mydocu~1\学习\tdiand~1 directory for files to compile.
    c:\docume~1\admini~1\mydocu~1\学习\tdiand~1
BUILD: Compiling c:\docume~1\admini~1\mydocu~1\学习\honey\tdiand~1 directory
Compiling - alltest.c for i386
Compiling - inject.c for i386
Compiling - maltest.c for i386
Compiling - filetest.c for i386
c:\winddk\2600\inc\wxp\ntdef.h(1092) : error see declaration of 'UNICODE_STRING'
Compiling - testwarn.c for i386
Compiling - sock.c for i386
Compiling - logging.c for i386
Compiling - checkssdt.c for i386
Compiling - hooked_fn.c for i386
Compiling - packet.c for i386
Compiling - av.c for i386
Compiling - hidereg.c for i386
Compiling - tditest.c for i386
Compiling - memtrack.c for i386
Compiling - obj_tbl.c for i386
BUILD: Compile errors: not linking c:\docume~1\admini~1\mydocu~1\学习\tdiand~1 directory
BUILD: Done

    30 files compiled - 1 Error

ntdef.h error是咋回事呢?请各位赐教了
环境:winxp sp2+vs2005+winxpddk+ds3.2
lujianxin1098
驱动牛犊
驱动牛犊
  • 注册日期2009-08-14
  • 最后登录2010-02-03
  • 粉丝0
  • 关注0
  • 积分9分
  • 威望91点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2009-09-21 11:28
BUILD: Loading C:\WINDDK\2600\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining c:\driver(9-17) directory for files to compile.
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <cderr.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <lzexpand.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <winperf.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <ole.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winbase.h: cannot fin
d include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\wingdi.h: cannot find
 include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winuser.h: cannot fin
d include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winnls.h: cannot find
 include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\winreg.h: cannot find
 include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\mmsystem.h: cannot fi
nd include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winscard.h: cannot fi
nd include file "scarderr.h"
    c:\driver(9-17) - 1 source files (614 lines)
BUILD: Saving C:\WINDDK\2600\build.dat...
BUILD: Compiling c:\driver(9-17) directory
Compiling - ptextend.c for i386
c:\winddk\2600\inc\wxp\ntdef.h(409) : error see declaration of 'UCHAR'
BUILD: Compile errors: not linking c:\driver(9-17) directory
BUILD: Done

    2 files compiled - 1 Error
lujianxin1098
驱动牛犊
驱动牛犊
  • 注册日期2009-08-14
  • 最后登录2010-02-03
  • 粉丝0
  • 关注0
  • 积分9分
  • 威望91点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2009-09-21 11:31
有高手回答一下,这个问题困扰了我很长时间了!这个要急着做出来呀!哪位大哥,帮帮忙吧!我是新手,不知道错在哪里呀!
lujianxin1098
驱动牛犊
驱动牛犊
  • 注册日期2009-08-14
  • 最后登录2010-02-03
  • 粉丝0
  • 关注0
  • 积分9分
  • 威望91点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2009-09-21 11:48
BUILD: Loading C:\WINDDK\2600\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining c:\driver(9-17) directory for files to compile.
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <cderr.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <lzexpand.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <winperf.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\windows.h: cannot fin
d include file <ole.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winbase.h: cannot fin
d include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\wingdi.h: cannot find
include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winuser.h: cannot fin
d include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winnls.h: cannot find
include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\wxp\winreg.h: cannot find
include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\mmsystem.h: cannot fi
nd include file <macwin32.h>
BUILD: c:\driver(9-17)\passthru.rc: c:\winddk\2600\inc\crt\winscard.h: cannot fi
nd include file "scarderr.h"
    c:\driver(9-17) - 1 source files (614 lines)
BUILD: Saving C:\WINDDK\2600\build.dat...
BUILD: Compiling c:\driver(9-17) directory
Compiling - ptextend.c for i386
c:\winddk\2600\inc\wxp\ntdef.h(409) : error see declaration of 'UCHAR'
BUILD: Compile errors: not linking c:\driver(9-17) directory
BUILD: Done

    2 files compiled - 1 Error

这种错误,小弟实在不知道怎么解决!哪位大哥,救救我吧!
游客

返回顶部