queen1212
驱动牛犊
驱动牛犊
  • 注册日期2013-04-09
  • 最后登录2013-04-16
  • 粉丝1
  • 关注2
  • 积分13分
  • 威望71点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2636回复:3

驱动编译时没有错误但不能生成sys文件

楼主#
更多 发布于:2013-04-11 08:56
编译结果显示:
C:\resource\test>build
BUILD: Object root set to: ==> objchk
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Loading C:\WINDDK\2600\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining c:\resource\test directory for files to compile.
BUILD: c:\resource\test\sfilter.rc: c:\winddk\2600\inc\crt\winbase.h: cannot fin
d include file <macwin32.h>
BUILD: c:\resource\test\sfilter.rc: c:\winddk\2600\inc\crt\wingdi.h: cannot find
 include file <macwin32.h>
BUILD: c:\resource\test\sfilter.rc: c:\winddk\2600\inc\crt\winuser.h: cannot fin
d include file <macwin32.h>
BUILD: c:\resource\test\sfilter.rc: c:\winddk\2600\inc\crt\winnls.h: cannot find
 include file <macwin32.h>
BUILD: c:\resource\test\sfilter.rc: c:\winddk\2600\inc\wxp\winreg.h: cannot find
 include file <macwin32.h>
BUILD: c:\resource\test\sfilter.rc: c:\winddk\2600\inc\crt\mmsystem.h: cannot fi
nd include file <macwin32.h>
    c:\resource\test - 1 source files (9,531 lines)
BUILD: Compiling c:\resource\test directory
BUILD: nmake.exe failed - rc = 2
BUILD: Linking c:\resource\test directory
BUILD: nmake.exe failed - rc = 2
BUILD: Done
哪位同仁帮我看看啊!
ITSailor
驱动牛犊
驱动牛犊
  • 注册日期2010-12-08
  • 最后登录2014-05-05
  • 粉丝2
  • 关注0
  • 积分29分
  • 威望291点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分1分
沙发#
发布于:2013-04-11 13:16
这叫没有出错???
我随便挑个错误
BUILD: c:\resource\test\sfilter.rc: c:\winddk\2600\inc\crt\winbase.h: cannot fin
d include file <macwin32.h>

没有找到头文件<macwin32.h>,难道这不叫错啊?没有出erro是因为现在还处于预编译阶段,都没到编译就出错了。

你的sfilter.rc可能是用VS或其他资源编辑工具修改过的,由于驱动的特殊性,这个驱动的RC文件,最好自己手工编辑。
queen1212
驱动牛犊
驱动牛犊
  • 注册日期2013-04-09
  • 最后登录2013-04-16
  • 粉丝1
  • 关注2
  • 积分13分
  • 威望71点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2013-04-15 10:19
这位大侠一看就是很懂,我实在是个菜鸟,您说的这些我都不大懂,我把程序给您您能帮我编译一下吗,谢谢您!
queen1212
驱动牛犊
驱动牛犊
  • 注册日期2013-04-09
  • 最后登录2013-04-16
  • 粉丝1
  • 关注2
  • 积分13分
  • 威望71点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2013-04-15 10:27
C:\resource\test>build
BUILD: Object root set to: ==> objchk
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Computing Include file dependencies:
BUILD: Examining c:\resource\test directory for files to compile.
    c:\resource\test - 3 source files (9,588 lines)
BUILD: Saving C:\WINDDK\2600\build.dat...
BUILD: Compiling c:\resource\test directory
BUILD: nmake.exe failed - rc = 2
BUILD: Linking c:\resource\test directory
BUILD: nmake.exe failed - rc = 2
BUILD: Done
现在编译是这个样子,这个错误我在网上也搜过,可是都没有解决掉问题,谁能帮帮我啊
游客

返回顶部