fengyu_1907
驱动牛犊
驱动牛犊
  • 注册日期2003-04-16
  • 最后登录2008-06-05
  • 粉丝0
  • 关注0
  • 积分137分
  • 威望15点
  • 贡献值0点
  • 好评度13点
  • 原创分0分
  • 专家分0分
阅读:1903回复:1

help me:WDM1

楼主#
更多 发布于:2004-12-24 15:36
Hello, all: I am a new driver programmer. When I checked build my device
driver, I get the following message. Could somebody give me a hint what the
potential problem will be? I have installed Visual C++6.0、DDK2000 and SDK2003 in my D drive
and have set environment before I build,I am sure that winres.h and excpt.h exist in
D:\\Program Files\\Microsoft Visual Studio\\VC98\\Include,Then make sure the path is listed in the list of paths.

----------------------------------------------------------
my SOURCES is below:
TARGETNAME= wdm1
TARGETTYPE= DRIVER
DRIVERTYPE= WDM
TARGETPATH= OBJ
BROWSER_INFO=1

INCLUDE= $(BASEDIR)inc

SOURCES = Init.cpp \\
 Pnp.cpp \\
 DebugPrint.c \\
 wdm1.rc


NTTARGETFILES= PostBuildSteps
----------------------------------------------------------
I compiled WDM1
but it made some error.

--------------------Configuration: Sys - 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:NTDDKbuild.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining e:wdm1sys directory for files to compile.
    e:\\wdm1\\sys
    e:\\wdm1\\sys - 4 source files (1,223 lines)
BUILD: Compiling e:\\wdm1\\sys directory
Compiling - wdm1.rc for i386
wdm1.rc(10) : error RC1015: cannot open include file 'winres.h'.
cvtres() : error CVT1101: cannot open objchk\\i386\\wdm1.tmp for reading
Compiling - debugprint.c for i386
d:\\ntddk\\inc\\wdm.h(25) : error C1083: Cannot open include file: 'excpt.h': No such file or directory
Compiling - init.cpp for i386
d:\\ntddk\\inc\\wdm.h(25) : error C1083: Cannot open include file: 'excpt.h': No such file or directory
Compiling - pnp.cpp for i386
d:\\ntddkinc\\wdm.h(25) : error C1083: Cannot open include file: 'excpt.h': No such file or directory
NMAKE :  U1073: don't know how to make 'objchk\\i386\\*.sbr'
BUILD: nmake.exe failed - rc = 2
BUILD: Linking e:\\wdm1\\sys directory
Compiling - wdm1.rc for i386
wdm1.rc(10) : error RC1015: cannot open include file 'winres.h'.
cvtres() : error CVT1101: cannot open objchk\\i386\\wdm1.tmp for reading
Compiling - debugprint.c for i386
d:\\ntddk\inc\\wdm.h(25) : error C1083: Cannot open include file: 'excpt.h': No such file or directory
Compiling - init.cpp for i386
d:\\ntddk\\inc\\wdm.h(25) : error C1083: Cannot open include file: 'excpt.h': No such file or directory
Compiling - pnp.cpp for i386
d:\\ntddk\\inc\\wdm.h(25) : error C1083: Cannot open include file: 'excpt.h': No such file or directory
Linking Executable - objchk\i386\wdm1.sys for i386
link() : error LNK1181: cannot open input file "objchk\\i386\\wdm1.res"
NMAKE :  U1073: don't know how to make 'objchk\\i386\\*.sbr'
BUILD: nmake.exe failed - rc = 2
BUILD: Done
    4 files compiled - 11 Errors -  1223 LPS
    1 executable built - 2 Errors

wdm1.sys - 11 error(s), 0 warning(s)



Thank you very much!

Brike.Huang
Brike.Huang@163.com
KMK
KMK
驱动大牛
驱动大牛
  • 注册日期2001-09-12
  • 最后登录2017-10-06
  • 粉丝2
  • 关注0
  • 积分42分
  • 威望404点
  • 贡献值2点
  • 好评度58点
  • 原创分1分
  • 专家分1分
  • 社区居民
沙发#
发布于:2004-12-25 12:59
Don't include the wdm.h in your code, try to use ntddk.h instead !
游客

返回顶部