欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

编译FileMon出错

发布时间:2024/4/18 编程问答 46 豆豆
生活随笔 收集整理的这篇文章主要介绍了 编译FileMon出错 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

今天下载了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这个结构删除就行了。

 

 

总结

以上是生活随笔为你收集整理的编译FileMon出错的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。