| 
			 
					阅读:1720回复:12
				 
				编译问题。。。。。。。。
					请教各位大侠:
 
							在checked的环境中。用命令build -L 产生如下错误: BUILD: Computing Include file dependencies: BUILD: Examining e:\driver directory for files to compile. Compiling e:\driver directory ******************** 'NMAKE.EXE /c BUILDMSG=Stop. NTTEST= UMTEST= NOLINK=1 NOPASS0=1 386=1' makefile(8) : U1052: file '\makefile.def' not found Stop. BUILD: NMAKE.EXE failed - rc = 2 Linking e:\driver directory ******************** 'NMAKE.EXE /c BUILDMSG=Stop. LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= 386=1' makefile(8) : U1052: file '\makefile.def' not found Stop. BUILD: NMAKE.EXE failed - rc = 2 请问为何原因啊? 还有我的编译目录下没有。rc文件。 应该对编译结果没有影响吧? 先谢过了 :)  | 
	|
					
						
						
						
						
  | 
	
| 
			 沙发# 
								发布于:2005-01-13 21:18				
			
					你确定你是在DDK的build环境吗?
 
							如果是DDK的build环境,用set命令看看环境变量,跟DDK相关的有不少,比如NTMAKEENV=f:\2KDDK\bin  | 
	|
| 
			 板凳# 
								发布于:2005-01-13 22:01				
			你确定你是在DDK的build环境吗? 确定啊, 就是用命令行编译的(checked环境) 有的资料不是说 打开这个环境的时候多数环境变量不就自动设置了,(自动调用setenv。bat批处理文件) 还有必要的环境变量就是在sources文件中设置(就是库文件吧) 不会是我的库文件包括的有问题吧? 以前我贴过这样的帖子 问wdn驱动要包括那些库文件的, 没有几个人回, 也没有搞的很清楚。 依大侠的意思 这个环境变量如何设置那? 谢谢了,  | 
	|
					
						
  | 
	
| 
			 地板# 
								发布于:2005-01-14 05:55				
			
					路径不能有空格 !				 
							 | 
	|
| 
			 地下室# 
								发布于:2005-01-14 08:29				
			路径不能有空格 ! 哪个路径? 库文件, 还是头文件的? 没有加空格啊。  | 
	|
					
						
  | 
	
| 
			 5楼# 
								发布于:2005-01-14 08:36				
			
					一下是将头文件路径改为绝对路径
 
							以及头文件路径。库文件路径跟等号之间都没有空格, 用build -eL 得出的结果: BUILD: Computing Include file dependencies: BUILD: Examining e:\driver directory for files to compile. Compiling e:\driver directory ******************** 'NMAKE.EXE /c BUILDMSG=Stop. NTTEST= UMTEST= NOLINK=1 NOPASS0=1 386=1' makefile(8) : U1052: file '\makefile.def' not found Stop. BUILD: NMAKE.EXE failed - rc = 2  | 
	|
					
						
  | 
	
| 
			 6楼# 
								发布于:2005-01-14 08:47				
			
					是环境问题还是你的工程文件的问题?
 
							去检测一下, 编译一下DDK目录src里随便一个例子, 好像我们都使用 Build -cZ编译,Build -L?  | 
	|
					
						
  | 
	
| 
			 7楼# 
								发布于:2005-01-14 09:03				
			
					我是用这bat去build的
 
							@echo off C:\\WINNT\\system32\\cmd.exe /C call C:\\WINDDK\\3790\\bin\\setenv C:\\WINDDK\\3790 CHK W2K cd\\ cd C:\\002\\u2c\\sys build -cZ pause exit  | 
	|
| 
			 8楼# 
								发布于:2005-01-14 09:19				
			
					可能是我的环境有问题了。。。。。。
 
							一下是DDK下随便一个例子 的build -cef的结果 BUILD: Computing Include file dependencies: BUILD: c:\program files\microsoft visual studio\vc98\include\exdisp.odl(31): c:\program files\microsoft visual studio\vc98\include\exdisp.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: c:\program files\microsoft visual studio\vc98\include\vidsvr.odl(16): c:\program files\microsoft visual studio\vc98\include\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: c:\progra~1\micros~2\vc98\include\exdisp.odl(31): c:\progra~1\micros~2\vc98\include\exdisp.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: c:\progra~1\micros~2\vc98\include\vidsvr.odl(16): c:\progra~1\micros~2\vc98\include\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: c:\ntddk\inc\win_me\makefile.def(1831): c:\ntddk\inc\win_me\makefile.def - invalid include statement: # include paths used for the pch. BUILD: Examining c:\ntddk\src\video\displays\framebuf directory for files to compile. Compiling c:\ntddk\src\video\displays\framebuf directory ******************** 'NMAKE.EXE /c BUILDMSG=Stop. NTTEST= UMTEST= NOLINK=1 NOPASS0=1 386=1' makefile(1) : U1052: file '\makefile.def' not found Stop. BUILD: NMAKE.EXE failed - rc = 2 Linking c:\ntddk\src\video\displays\framebuf directory ******************** 'NMAKE.EXE /c BUILDMSG=Stop. LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= 386=1' makefile(1) : U1052: file '\makefile.def' not found Stop. BUILD: NMAKE.EXE failed - rc = 2 我发现这几次最后两行的错误提示总是一样的。。。 怎么回事情 啊 原来编译例子的时候没有问题的。  | 
	|
					
						
  | 
	
| 
			 9楼# 
								发布于:2005-01-14 12:35				
			
					还是重装一下VC和DDK吧				 
							 | 
	|
					
						
  | 
	
| 
			 10楼# 
								发布于:2005-01-14 14:22				
			
					哦
 
							谢谢了。。  | 
	|
					
						
  | 
	
| 
			 11楼# 
								发布于:2005-01-14 15:12				
			
					运行set,结果是什么?
 
							有NTMAKEENV=xxx吗?  | 
	|
| 
			 12楼# 
								发布于:2005-01-14 16:12				
			运行set,结果是什么? 第一次运行set时候没有大侠说的那一项, 我重进一次后在运行set有这一项了 NTMAKEENV=c:\NTDDK\bin 还有很多这种形式的式子。  | 
	|
					
						
  |