您的位置:首页 > 其它

编译FileMon出错

2010-06-29 16:42 239 查看
今天下载了FileMon,编译之后,提示一个错误信息

E:/Data/100397/2007112823434719/FileMon/sys>build
BUILD: Compile and Link for x86
BUILD: Loading c:/winddk/7600.16385.1/build.dat...
BUILD: Computing Include file dependencies:
BUILD: Start time: Tue Jun 29 16:29:07 2010
BUILD: Examining e:/data/100397/2007112823434719/filemon/sys directory for files
to compile.
e:/data/100397/2007112823434719/filemon/sys Invalidating OACR warning log fo
r 'root:x86chk'
BUILD: Saving c:/winddk/7600.16385.1/build.dat...
BUILD: Compiling and Linking e:/data/100397/2007112823434719/filemon/sys directo
ry
Configuring OACR for 'root:x86chk' - <OACR on>
_NT_TARGET_VERSION SET TO WS03
Compiling - filemon.c
1>errors in directory e:/data/100397/2007112823434719/filemon/sys
1>e:/data/100397/2007112823434719/filemon/sys/wintypes.h(299) : error C2011: '_F
ILE_NAME_INFORMATION' : 'struct' type redefinition
Linking Executable - objchk_wnet_x86/i386/filem.sys
1>link : error LNK1181: cannot open input file 'e:/data/100397/2007112823434719/
filemon/sys/objchk_wnet_x86/i386/filemon.obj'
BUILD: Finish time: Tue Jun 29 16:29:11 2010
BUILD: Done

3 files compiled - 4 Warnings - 1 Error
1 executable built - 1 Error

认真看了一下,原来是结构重定义了。

e:/data/100397/2007112823434719/filemon/sys/wintypes.h(299) : error C2011: '_F
ILE_NAME_INFORMATION' : 'struct' type redefinition

打开wintypes.h找到229行,将FILE_NAME_INFORMATION这个结构删除就行了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: