superbert
驱动牛犊
驱动牛犊
  • 注册日期2005-02-05
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分19分
  • 威望4点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1325回复:3

[求助]新人学习驱动,遇到第一个例子(Christ Cant的书),但编译的时候通不过?

楼主#
更多 发布于:2005-07-16 10:46
  我看的书是christ cant 的“windowsWDM设备驱动程序开发指南”

现在编译该书的第一个“wdm1”的例子驱动出现如下错误:
----------------------------------------------------------------
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: Examining c:\wdmbook\wdm1\sys directory for files to compile.
  c:\wdmbook\wdm1\sys
  c:\wdmbook\wdm1\sys - 5 source files (1,824 lines)
BUILD: Compiling c:\wdmbook\wdm1\sys directory
Compiling - wdm1.rc for i386
Compiling - debugprint.c for i386
Compiling - init.cpp for i386
Compiling - dispatch.cpp for i386
Compiling - pnp.cpp for i386
Linking Executable - objchk\i386\wdm1.sys for i386
pnp.obj() : error : Internal error during Pass2
BUILD: Linking c:\wdmbook\wdm1\sys directory
Compiling - wdm1.rc for i386
Compiling - debugprint.c for i386
Compiling - init.cpp for i386
Compiling - dispatch.cpp for i386
Compiling - pnp.cpp for i386
Linking Executable - objchk\i386\wdm1.sys for i386
pnp.obj() : error : Internal error during Pass2
BUILD: Done
  5 files compiled -   912 LPS
  2 executables built - 2 Errors

Wdm1.sys - 2 error(s), 0 warning(s)
----------------------------------------------------------------
我的系统是(W2K + SP4) + (VC6.0EN + SP6)
还安装了WinDriver 6.2 和 DriverStudio3.2

但我在另一台软件环境差不多的笔记本上可以顺利的调试通过,不知道是什么原因

请问有人遇到过类似的情况没有,帮助一下我,我不想重新安装系统了……谢谢了
freasy
驱动牛犊
驱动牛犊
  • 注册日期2004-01-26
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分14分
  • 威望22点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2007-05-12 19:39
我也遇到了这个问题,把DDK里面的link删除或者是改名称就可以了
taotaowind
驱动牛犊
驱动牛犊
  • 注册日期2007-04-30
  • 最后登录2007-05-13
  • 粉丝0
  • 关注0
  • 积分70分
  • 威望8点
  • 贡献值0点
  • 好评度7点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2007-05-13 15:50
我以前下了一个文章(抱歉忘了出处),有这个例子的编译方法,在附件,你看看吧.
附件名称/大小 下载次数 最后更新
Windows WDM驱动开发.pdf (2916KB)  40 2007-05-13 15:50
驱网无线,快乐无限
ns_lidy
驱动牛犊
驱动牛犊
  • 注册日期2007-03-29
  • 最后登录2008-03-21
  • 粉丝0
  • 关注0
  • 积分310分
  • 威望32点
  • 贡献值0点
  • 好评度31点
  • 原创分0分
  • 专家分0分
地板#
发布于:2007-05-25 20:08
这篇文章对初学者真的很有帮助,谢谢了
游客

返回顶部