阅读:1470回复:5
编译Oney的例子程序问题(第二版)
在编译Oney书的第二版的例子程序出现如下问题:
即在Checked下编译出错 在free下编译正确, 请问是否还有那个地方设置不对? 我安装的2000DDK 操作过程是: 1、先安装2000DDK和VC6.0并升级到SP5 2、安装例子程序,并升级到SP3 3、用fix driver project将例子程序fix了一下 4、按照wdmbook.HTML中的设置方法进行编译设置 5、编译例子程序 -------Configuration: stupid - Win32 Checked-------------------- Compiling resources... Compiling... stddcls.cpp Compiling... DriverEntry.cpp Linking... LINK : fatal error LNK1207: incompatible PDB format in "D:\Program Files\windows driver model samples\Chap2\stupid\objchk_wxp_x86\i386\stupid.pdb"; delete and rebuild Error executing link.exe. stupid.sys - 1 error(s), 0 warning(s) --------------------Configuration: stupid - Win32 Free-------------------- Compiling resources... Compiling... stddcls.cpp Compiling... DriverEntry.cpp Linking... Finishing up... Compuware NM32 Symbol Translator/Loader version 4.3.0 (C) Compuware Corporation, 1996-2003 MODULE=.objfrei386stupid.sys PROMPT=OFF SoftICE is not active Translation of D:Program Fileswindows driver model samplesChap2stupidobjfrei386stupid.sys successfully completed REBASE: Total Size of mapping 0x00010000 REBASE: Range 0x00010000 -0x00020000 stupid.sys - 0 error(s), 0 warning(s) [编辑 - 12/9/04 by imagewxg] |
|
沙发#
发布于:2004-12-10 22:14
LINK : fatal error LNK1207: incompatible PDB format in "Drogram Files\\windows driver model\\samples\\Chap2\\stupid\\objchk_wxp_x86\\i386\\stupid.pdb"; delete and rebuild
按着提示,删除重新编译即可, 可能是编译器不同,或该文件坏掉导致的连接错误 |
|
|
板凳#
发布于:2004-12-11 14:04
谢谢,搞定了
我一开始是用VC中build菜单中clean来删除的,不行 后来之接将编译文件夹中的文件删除,行! |
|
地板#
发布于:2004-12-16 15:15
我也有一个问题,借楼主的贴子问问啊,我编译用户模式的程序的时候,出现下面的错误:
-------------------Configuration: fastinst - Win32 Release-------------------- Compiling... StdAfx.cpp C:\Documents and Settings\zhyxue\My Documents\microsoft press\windows driver model samples\Chap15\Fastinst\stdafx.h(23) : fatal error C1083: Cannot open include file: 'newdev.h': No such file or directory Error executing cl.exe. FastInst.exe - 1 error(s), 0 warning(s) 这个问题是不是缺少sdk引起的那?我的系统是win2000,装了一个 platform sdk febuary 2003。是设置的问题还是sdk不对? |
|
地下室#
发布于:2004-12-22 17:12
你的书在哪里买的啊?
|
|
|
5楼#
发布于:2004-12-27 10:25
电子版
|
|