| 
					阅读:2504回复:20
				 关于VC++6.0的配置
					问题:
 1.我按照windows WDM开发指南上的要求修改了“settting”选项,和“directaries”中的executable files选项,可编译时会出现,找不到目录。不生成任何*.sys文件 2.要么不编译,要编译就把ntDDK里的文件编译一遍。 问题出在什么地方? | |
| 
 | 
| 沙发#发布于:2002-06-17 12:58 
					手工建立Free和Checked文件夹。				 | |
| 板凳#发布于:2002-06-17 13:11 
					好像还是不行。
 错误信息如下 Deleting intermediate files and output files for project \'Wdm1 - Win32 Checked\'. --------------------Configuration: Wdm1 - Win32 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 | |
| 
 | 
| 地板#发布于:2002-06-17 13:22 
					答对要给分呦!
 1、检查有没有将makedrvr.bat放在编译目录下 2、有没有设置环境变量ddkroot,还有你的编译目录 3、检查你的ddk,进入driver:\\xxddk\\bin 用build -cz 来测试你的ddk是否安装成功 | |
| 
 | 
| 地下室#发布于:2002-06-17 13:26 
					到
 project--seting---link中看看 output file name中的文件路径对不对 | |
| 
 | 
| 5楼#发布于:2002-06-17 13:27 
					答对要给分呦!
 1、检查有没有将makedrvr.bat放在编译目录下 2、有没有设置环境变量ddkroot,还有你的编译目录(可能是这个原因) 3、检查你的ddk,进入driver:\\xxddk\\bin 用build -cz 来测试你的ddk是否安装成功 4、检查你的编译目录,应该有objchk\\i386,objfre\\i386这个目录 | |
| 
 | 
| 6楼#发布于:2002-06-17 13:41 
					我的setting 设置
 Build command line: MakeDrvr %DDKROOT% d: %MYPROJECT%\\wdm1\\SYS\\CHECKED Rebuild all options -nmake/a Outputfile name: wdm1.sys Browse info file name: obj\\386\\free\\wdm1.bsc 我的makedrvr.bat内容 @echo off if \"%1\"==\"\" goto usage if \"%3\"==\"\" goto usage if not exist %1\\bin\\setenv.bat goto usage call %1\\bin\\setenv %1 %4 %2 cd %3 build -b -w %5 %6 %7 %8 %9 goto exit :usage echo usage MakeDrvr %%DDKROOT%% d:%%myproject%% CHECKED -cef :exit 对吗? build -cz 的结果是 119 files compiled -2 Errors 7 libraries built -1 Errors 180 executables built DDK有没有问题? | |
| 
 | 
| 7楼#发布于:2002-06-17 13:47 
					ddk没有问题,
 你检查一下你的环境变量也就是你的ddkroot,MYPROJECT的设置!! 在98下察看autoexec.bat,在2k下察看控制面板-〉系统-〉高级设置(最后一项我记不大清楚了) | |
| 
 | 
| 8楼#发布于:2002-06-17 13:59 
					错误信息如下
 Deleting intermediate files and output files for project \'Wdm1 - Win32 Checked\'. --------------------Configuration: Wdm1 - Win32 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 d:\\NTDDK\\build.dat... BUILD: Computing Include file dependencies: BUILD: ERROR - \"d:\\ntddk\\dirs.\" file time is in the future. BUILD: Examining d:\\ntddk directory tree for files to compile. d:\\ntddk d:\\ntddk\\inc d:\\ntddk\\inc\\win_me BUILD: ERROR - \"d:\\ntddk\\src\\dirs.\" file time is in the future. d:\\ntddk\\src d:\\ntddk\\src\\debugging d:\\ntddk\\src\\debugging\\kanalyze d:\\ntddk\\src\\debugging\\kanalyze\\plugins d:\\ntddk\\src\\debugging\\kanalyze\\plugins\\director 高级设置都是对的,ddkroot=d:\\ntddk | |
| 
 | 
| 9楼#发布于:2002-06-17 14:06 
					设没设置MYPROJECT?
 在vc中把tools->options->directories包含d:\\ntddk\\inc 并把他置顶 | |
| 
 | 
| 10楼#发布于:2002-06-17 14:12 
					Deleting intermediate files and output files for project \'Wdm1 - Win32 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 d:\\NTDDK\\build.dat... BUILD: Computing Include file dependencies: BUILD: Done Wdm1.sys - 0 error(s), 0 warning(s) “myproject”是自己建的目录,我把makedrvr.bat放在其中。WDM1的工程文件夹也在其中。 | |
| 
 | 
| 11楼#发布于:2002-06-17 14:20 
					faint!!!
 你不设置MYPROJECT,操作系统怎么会知道他要编译什么东西? MakeDrvr %DDKROOT% d: %MYPROJECT%\\wdm1\\SYS\\CHECKED 你理解这句话是什么意思吗? | |
| 
 | 
| 12楼#发布于:2002-06-17 14:34 
					在D:\\MYPROJECT\\WDM1中有我要编译的原文件?
 我该如何设置呢? 多谢! | |
| 
 | 
| 13楼#发布于:2002-06-17 14:42 
					ddkroot=d:\\ntddk
 MYPROJECT=d:\\MYPROJECT | |
| 
 | 
| 14楼#发布于:2002-06-17 14:58 
					makedrvr %d:\\ntddk% %d:\\myproject\\wdm1% checked ?
 好像不对。 | |
| 
 | 
| 15楼#发布于:2002-06-17 15:48 
					老兄:
 我是让你在环境变量里面设置! 希望你能把这些贴子从头再看一便! | |
| 
 | 
| 16楼#发布于:2002-06-17 15:50 
					多谢了,已经搞定了。
 就是不知道%%用来应用环境变量。 其实直接设置路径就没有这么麻烦了。 | |
| 
 | 
| 17楼#发布于:2002-06-17 15:53 
					以后要记住 :cool:				 | |
| 18楼#发布于:2002-06-17 15:56 
					我得这几分也够痛苦的!!!!! :D				 | |
| 
 | 
| 19楼#发布于:2002-06-17 16:00 
					多谢前辈指点。
 呵呵,一点小问题,我不知道错在那,你不知道该怎么讲。 多谢,多谢。 | |
| 
 | 
上一页
下一页
 
			
			
						
			
			
						
			
		 
							
 
				 
				
 
				