编译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出错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 转义字符 /r与/n的区别
- 下一篇: VC编写托盘程序