阅读:1679回复:8
驱动程序编译为何有如下两种情况
1、编译不完:
例子: 网络包截获passthru的源代码很快通过,但是一样设置来进行编译filemon的却没完没了,UILD: ERROR - "e:applentddkdirs." file time is in the future. 文件时间属于未来????然后检查NTDDK下的一大堆文件,然后cannot find include file <macwin32.h>,最后就是e:applentddksrcwdmscancamdllsampusd e:applentddksrcwdmscancamsampcpl e:applentddksrcwdmscancamscsiscan e:applentddksrcwdmusb e:applentddksrcwdmusbusbview 。。。。。。。 一直来,我时按照windows防火墙与网络封包截获的第2章那样来设置的,原来编译其xpassthru也有人遇到类似情况,可惜不知道为什么? 2、有102个错误: 说NTDDK.h中有什么没有分号什么的每次都102个错误,可能是头文件包含有错,但是我不能纠正。 请高手指点,谢谢! |
|
沙发#
发布于:2004-07-08 23:34
补充一下:win2000+VC6(有助手)+SDK+DDK2000,有人说要按照这个顺序安装,我就重新按照这个顺序装了,但是还是不行,另外一台计算机上sdk后装,也行,不知哪里错。
|
|
板凳#
发布于:2004-07-09 16:12
UILD: ERROR - "e:applentddkdirs." file time is in the future. 文件时间属于未来????
//////////////////////////////////// 这样的翻译太直白了吧。 这是你系统的当前时间比某个.C文件的时间靠前。编译器是按照时间的先后来识别哪些文件需要重新编译的。 把你系统的时间设置正确应该接没有问题了。 实在不行就把系统时间设置为2008年。 |
|
地板#
发布于:2004-07-10 16:12
UILD: ERROR - "e:applentddkdirs." file time is in the future. 文件时间属于未来???? 你说的的确有道理,但是还是不停地编译,我编译另外一个是正确的,如下: --------------------Configuration: MinDriverInVc - Win32 Debug-------------------- D:\bug\MinDriverInVc>if "E:\apple\NTDDK" == "" goto InvalidParameter D:\bug\MinDriverInVc>if not exist E:\apple\NTDDK\bin\setenv.bat goto SetenvNotFound D:\bug\MinDriverInVc>call E:\apple\NTDDK\bin\setenv.bat E:\apple\NTDDK checked New or updated MSVC detected. Updating DDK environment.... Setting environment for using Microsoft Visual C++ tools. Starting dirs creation...Completed. BUILD: Object root set to: ==> objchk BUILD: /i switch ignored BUILD: Compile and Link for i386 BUILD: Loading E:\apple\NTDDK\build.dat... BUILD: Computing Include file dependencies: BUILD: Examining d:\bug\mindriverinvc\mindriver directory for files to compile. d:\bug\mindriverinvc\mindriver BUILD: d:\bug\mindriverinvc\mindriver\xpassthru.rc: e:\apple\ntddk\inc\winbase.h: cannot find include file <macwin32.h> BUILD: d:\bug\mindriverinvc\mindriver\xpassthru.rc: e:\apple\ntddk\inc\wingdi.h: cannot find include file <macwin32.h> BUILD: d:\bug\mindriverinvc\mindriver\xpassthru.rc: e:\apple\ntddk\inc\winuser.h: cannot find include file <macwin32.h> BUILD: d:\bug\mindriverinvc\mindriver\xpassthru.rc: e:\apple\ntddk\inc\winnls.h: cannot find include file <macwin32.h> BUILD: d:\bug\mindriverinvc\mindriver\xpassthru.rc: e:\apple\ntddk\inc\winreg.h: cannot find include file <macwin32.h> BUILD: d:\bug\mindriverinvc\mindriver\xpassthru.rc: e:\apple\ntddk\inc\mmsystem.h: cannot find include file <macwin32.h> BUILD: Saving E:\apple\NTDDK\build.dat... BUILD: Linking d:\bug\mindriverinvc\mindriver directory BUILD: Done MinDriverInVc.exe - 0 error(s), 0 warning(s) 而编译这个的时候是这样的: --------------------Configuration: filemontest - Win32 Debug-------------------- D:\bug\filemontest>if "E:\apple\NTDDK" == "" goto InvalidParameter D:\bug\filemontest>if not exist E:\apple\NTDDK\bin\setenv.bat goto SetenvNotFound D:\bug\filemontest>call E:\apple\NTDDK\bin\setenv.bat E:\apple\NTDDK checked New or updated MSVC detected. Updating DDK environment.... Setting environment for using Microsoft Visual C++ tools. Starting dirs creation...Completed. BUILD: Object root set to: ==> objchk BUILD: /i switch ignored BUILD: Compile and Link for i386 BUILD: Loading E:\apple\NTDDK\build.dat... BUILD: Computing Include file dependencies: BUILD: ERROR - "e:\apple\ntddk\dirs." file time is in the future. BUILD: Examining e:\apple\ntddk directory tree for files to compile. e:\apple\ntddk e:\apple\ntddk\inc e:\apple\ntddk\inc\win_me BUILD: ERROR - "e:\apple\ntddk\src\dirs." file time is in the future. e:\apple\ntddk\src e:\apple\ntddk\src\debugging e:\apple\ntddk\src\debugging\kanalyze e:\apple\ntddk\src\debugging\kanalyze\plugins e:\apple\ntddk\src\debugging\kanalyze\plugins\director e:\apple\ntddk\src\debugging\kanalyze\plugins\director\viewcmd BUILD: e:\apple\ntddk\src\debugging\kanalyze\plugins\director\viewcmd\precomp.h: e:\apple\ntddk\inc\winbase.h: cannot find include file <macwin32.h> BUILD: e:\apple\ntddk\src\debugging\kanalyze\plugins\director\viewcmd\precomp.h: e:\apple\ntddk\inc\wingdi.h: cannot find include file <macwin32.h> BUILD: e:\apple\ntddk\src\debugging\kanalyze\plugins\director\viewcmd\precomp.h: e:\apple\ntddk\inc\winuser.h: cannot find include file <macwin32.h> BUILD: e:\apple\ntddk\src\debugging\kanalyze\plugins\director\viewcmd\precomp.h: e:\apple\ntddk\inc\winnls.h: cannot find include file <macwin32.h> BUILD: e:\apple\ntddk\src\debugging\kanalyze\plugins\director\viewcmd\precomp.h: e:\apple\ntddk\inc\winreg.h: cannot find include file <macwin32.h> BUILD: e:\apple\ntddk\src\debugging\kanalyze\plugins\director\viewcmd\precomp.h: e:\apple\ntddk\inc\mmsystem.h: cannot find include file <macwin32.h> e:\apple\ntddk\src\wdm e:\apple\ntddk\src\wdm\1394 e:\apple\ntddk\src\wdm\1394\tools e:\apple\ntddk\src\wdm\1394\tools\1394api e:\apple\ntddk\src\wdm\1394\tools\1394api - 2 source files (1,517 lines) e:\apple\ntddk\src\wdm\1394\tools\win1394 e:\apple\ntddk\src\wdm\1394\tools\win1394 - 7 source files (5,815 lines) e:\apple\ntddk\src\wdm\1394\devices e:\apple\ntddk\src\wdm\1394\devices\1394diag e:\apple\ntddk\src\wdm\1394\devices\1394diag - 8 source files (4,988 lines) e:\apple\ntddk\src\wdm\acpi e:\apple\ntddk\src\wdm\acpi\ec e:\apple\ntddk\src\wdm\acpi\ec - 7 source files (3,280 lines) e:\apple\ntddk\src\wdm\audio e:\apple\ntddk\src\wdm\audio\fmsynth e:\apple\ntddk\src\wdm\audio\fmsynth - 1 source files (2,620 lines) e:\apple\ntddk\src\wdm\audio\uart e:\apple\ntddk\src\wdm\audio\uart - 2 source files (1,463 lines) e:\apple\ntddk\src\wdm\audio\dmusuart e:\apple\ntddk\src\wdm\audio\dmusuart - 2 source files (2,295 lines) e:\apple\ntddk\src\wdm\audio\stdunk e:\apple\ntddk\src\wdm\audio\stdunk - 1 source files (116 lines) e:\apple\ntddk\src\wdm\audio\sb16 e:\apple\ntddk\src\wdm\audio\sb16 - 5 source files (5,239 lines) e:\apple\ntddk\src\wdm\audio\mpu401 e:\apple\ntddk\src\wdm\audio\mpu401 - 2 source files (342 lines) e:\apple\ntddk\src\wdm\audio\ac97 e:\apple\ntddk\src\wdm\audio\ac97\ac97 e:\apple\ntddk\src\wdm\audio\ac97\ac97 - 7 source files (9,852 lines) e:\apple\ntddk\src\wdm\audio\ac97\proppage e:\apple\ntddk\src\wdm\audio\ac97\proppage - 2 source files (682 lines) e:\apple\ntddk\src\wdm\audio\ddksynth e:\apple\ntddk\src\wdm\audio\ddksynth - 14 source files (11,538 lines) e:\apple\ntddk\src\wdm\dvd e:\apple\ntddk\src\wdm\dvd\dvdts e:\apple\ntddk\src\wdm\dvd\dvdts - 6 source files (6,532 lines) e:\apple\ntddk\src\wdm\general e:\apple\ntddk\src\wdm\general\filter e:\apple\ntddk\src\wdm\general\filter - 5 source files (1,550 lines) e:\apple\ntddk\src\wdm\general\cplsvr1 e:\apple\ntddk\src\wdm\general\cplsvr1 - 5 source files (2,653 lines) e:\apple\ntddk\src\wdm\wmi e:\apple\ntddk\src\wdm\wmi\wmiacpi e:\apple\ntddk\src\wdm\wmi\wmifilt e:\apple\ntddk\src\wdm\wmi\cdmprov e:\apple\ntddk\src\wdm\wmi\diagfilt 。。。。。。。一直这样。 |
|
地下室#
发布于:2004-07-10 16:19
我仔细看了,NTDDK目录下下面的dirs的时间是编译一次久变成编译时的系统时间,是变化的,为什么会变?另外的怎么又在本机上编译正常,而filemon在别人的计算机上是能够编译通过的?谢谢
|
|
5楼#
发布于:2004-07-10 23:17
看看你的设置是否正确?包括include lib等路径。另外把最新版的SDK里的inc lib 目录下的文件拷贝到VC的相应目录完成更新。
|
|
|
6楼#
发布于:2004-07-10 23:43
我重rebuild 了VC SDK 和DDK,并运行了环境设置,发现没有了file is in the future 的错误了,但是还是编译不停,比较了一下正确的和错误的 ,发现正确的为:
BUILD: Examining d:\bug\mindriverinvc\mindriver directory for files to compile. 错误的为: BUILD: Examining e:\ntddk directory tree for files to compile.,检查编译ddk目录,可能是哪里设置错了? |
|
7楼#
发布于:2004-07-11 00:02
谢谢大家的关注,是我的粗心造成的,盘符设置有错,现在的错误变为:wintypes.h(299) : error C2011: '_FILE_NAME_INFORMATION' : 'struct' type redefinition
好像本站有相关帖子,但是为什么那太计算机上没有这个错误? |
|
8楼#
发布于:2004-09-21 14:01
楼主是不是这个贴,我有来曾分了,呵呵
|
|
|