阅读:1372回复:3
[求助]新人学习驱动,遇到第一个例子(Christ Cant的书),但编译的时候通不过?
我看的书是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 但我在另一台软件环境差不多的笔记本上可以顺利的调试通过,不知道是什么原因 请问有人遇到过类似的情况没有,帮助一下我,我不想重新安装系统了……谢谢了 |
|
沙发#
发布于:2007-05-12 19:39
我也遇到了这个问题,把DDK里面的link删除或者是改名称就可以了
|
|
板凳#
发布于:2007-05-13 15:50
我以前下了一个文章(抱歉忘了出处),有这个例子的编译方法,在附件,你看看吧.
|
|
|
地板#
发布于:2007-05-25 20:08
这篇文章对初学者真的很有帮助,谢谢了
|
|