samxie
驱动牛犊
驱动牛犊
  • 注册日期2001-07-02
  • 最后登录2004-08-25
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1695回复:4

98ddk的例子是不是只能用VC5.0 or 4.2编译?

楼主#
更多 发布于:2002-03-05 11:01
我想做printer 的mini driver, 用98ddk\\src\\printer\\下的例子为
基础,但是用98DDK build这些例子总出错,我看了98 DDK文档,好象说98 DDK的例子只能用VC5.0 or 4.2编译,是这样吗?
另外,build 后面应该带什么参数?

我是初学者,眼前一片漆黑,企盼高人指点。

出错信息:
BUILD: Computing Include file dependencies:
BUILD: d:\\microsoft visual studio\\vc98\\include\\exdisp.odl(31): d:\\microsoft visual studio\\vc98\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: d:\\microsoft visual studio\\vc98\\include\\vidsvr.odl(16): d:\\microsoft visual studio\\vc98\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: d:\\micros~2\\vc98\\include\\exdisp.odl(31): d:\\micros~2\\vc98\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: d:\\micros~2\\vc98\\include\\vidsvr.odl(16): d:\\micros~2\\vc98\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: Examining d:\\98ddk\\src\\printer\\epson24 directory for files to compile.
BUILD: Unable to save the dependency database: D:\\nt\\build.dat
Building generated files in d:\\98ddk\\src\\printer\\epson24 ********************
\'nmake.exe /c BUILDMSG=Stop. -i NTTEST= UMTEST= NOLINK=1 PASS0ONLY=1 386=1\'
d:\\98DDK\\bin\\win98\\bin16\\rc.exe -r -I. -fo obj\\i386\\EPSON24.res EPSON24.RC
Invalid keyboard code specified
Microsoft (R) Windows Resource Compiler Version 4.00
Copyright (C) Microsoft Corp. 1985-1993. All rights reserved.

set ML=-DIS_16 -nologo -W2 -Zd -c -Cx -DMASM6
ml -Foobj\\i386\\libinit.obj libinit.asm
set CL=-nologo -u -c -Asnw -PLM -Gsw -W3 -Oasceob1 -Zpe
cl -Foobj\\i386\\minidriv.obj minidriv.c
\\bin\\cl -Foobj\\i386\\minidriv.obj ..\\common\\minidriv.c
The system cannot find the path specified.
set CL=-nologo -u -c -Asnw -PLM -Gsw -W3 -Oasceob1 -Zpe
cl -Foobj\\i386\\EPSON24.obj EPSON24.c
\\bin\\cl -nologo -u -c -Asnw -PLM -Gsw -W3 -Oasceob1 -Zpe -Foobj\\i386\\EPSON24.obj EPSON24.c
The system cannot find the path specified.
BUILD: Pipe read failed - errno = 42
BUILD: Examining d:\\98ddk\\src\\printer\\epson24 directory for files to compile. (2nd Pass)
BUILD: Unable to save the dependency database: D:\\nt\\build.dat
Linking d:\\98ddk\\src\\printer\\epson24 directory ********************
\'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= 386=1\'
set CL=-nologo -u -c -Asnw -PLM -Gsw -W3 -Oasceob1 -Zpe
cl -Foobj\\i386\\minidriv.obj minidriv.c
\\bin\\cl -Foobj\\i386\\minidriv.obj ..\\common\\minidriv.c
The system cannot find the path specified.
set CL=-nologo -u -c -Asnw -PLM -Gsw -W3 -Oasceob1 -Zpe
cl -Foobj\\i386\\EPSON24.obj EPSON24.c
\\bin\\cl -nologo -u -c -Asnw -PLM -Gsw -W3 -Oasceob1 -Zpe -Foobj\\i386\\EPSON24.obj EPSON24.c
The system cannot find the path specified.
\\bin\\link -OUT:obj\\i386\\EPSON24.exe
\\bin\\link /ALIGN:16/NOD/map @C:\\DOCUME~1\\ADMINI~1\\LOCALS~1\\Temp\\nma00664.
The system cannot find the path specified.
mapsym -o obj\\i386\\EPSON24.sym obj\\i386\\EPSON24.map
Microsoft (R) Symbol File Generator NTGroup Version 6.02
Copyright (C) Microsoft Corp 1984 - 1996.  All rights reserved.
Line number support enabled
mapsym: can\'t open input file: obj\\i386\\EPSON24.map
d:\\98DDK\\bin\\win98\\bin16\\rc.exe -40 -t -I. obj\\i386\\EPSON24.res obj\\i386\\EPSON24.exe
Microsoft (R) Windows Resource Compiler Version 4.00
Copyright (C) Microsoft Corp. 1985-1993. All rights reserved.

RC : fatal error RW1030: obj\\i386\\EPSON24.exe: Unable to open

copy obj\\i386\\EPSON24.exe obj\\i386\\EPSON24.drv
The system cannot find the file specified.
 

最新喜欢:

pepetapepeta
blue
驱动大牛
驱动大牛
  • 注册日期2001-04-25
  • 最后登录2010-10-15
  • 粉丝0
  • 关注0
  • 积分55分
  • 威望12点
  • 贡献值0点
  • 好评度4点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-03-05 13:08
当然可以,我就用win98 + 98DDK + VC6.0,使用得也蛮好。但要注意,Win Me与Win 98有时使用对方环境下编译的程序可能不正常工作。
你的情况,我看又是微软的bug了你试一下:
在你的工程所在目录下,手动建立 obj\\i386\\ 目录,你再编译一下。
至于 build 的参数,(看来你应该是79年以后的), 你键入 build /?
gzyjw
驱动牛犊
驱动牛犊
  • 注册日期2001-11-03
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-04-12 10:01
由于98ddk中的build.exe有一个大bug,它不能建立\\obj\\i386\\checked和free目录,所以一般要编译需先手工建立该目录,另外在98ddk的源程序目录中的sources文件中的targetpath项一般是指向lib的,也需你手工改成obj.
再编译即可,希望对你有帮助。
gzyjw
jerf.cat
驱动中牛
驱动中牛
  • 注册日期2002-03-30
  • 最后登录2005-09-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-04-13 00:43
i use vc6.work well now.
jerf.cat
驱动中牛
驱动中牛
  • 注册日期2002-03-30
  • 最后登录2005-09-10
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-04-13 08:32
You can use win2000 ddk samples to do it.
Work same well.
游客

返回顶部