moqingsong
论坛版主
论坛版主
  • 注册日期2002-04-07
  • 最后登录2011-02-03
  • 粉丝0
  • 关注0
  • 积分74分
  • 威望71点
  • 贡献值0点
  • 好评度10点
  • 原创分0分
  • 专家分0分
阅读:1620回复:9

关于passthru的编译问题,虽然简单但我确实没想明白

楼主#
更多 发布于:2002-04-08 19:55
passthru我用build -b -w编译,第一遍什么事都没有,第二遍就说macwin32.h找不到,我search了整个硬盘没有这个文件。把obj\\,objchk\\两个目录删掉再编译就没事了。第二遍又出同样的问题。
编译的全部结果见附件。那位给指点一下为什么。谢谢。


E:\\programming\\wdm-driver\\passthru>build -b -w
BUILD: Object root set to: ==> objchk
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Loading D:\\PROGRA~1\\NTDDK\\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining e:\\programming\\wdm-driver\\passthru directory for files to comp
le.
    e:\\programming\\wdm-driver\\passthru - 5 source files (2,870 lines)
BUILD: Compiling e:\\programming\\wdm-driver\\passthru directory
Compiling Precompiled Header - precomp.h for i386
Compiling - passthru.rc for i386
Compiling - passthru.c for i386
Compiling - protocol.c for i386
Compiling - miniport.c for i386
BUILD: Linking e:\\programming\\wdm-driver\\passthru directory
Linking Executable - objchk\\i386\\passthru.sys for i386
BUILD: Done

    5 files compiled -  2870 LPS
    1 executable built

E:\\programming\\wdm-driver\\passthru>build -b -w
BUILD: Object root set to: ==> objchk
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Loading D:\\PROGRA~1\\NTDDK\\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining e:\\programming\\wdm-driver\\passthru directory for files to comp
le.
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\wi
base.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\wi
gdi.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\wi
user.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\wi
nls.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\wi
reg.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\mm
ystem.h: cannot find include file <macwin32.h>
BUILD: Linking e:\\programming\\wdm-driver\\passthru directory
BUILD: Done


E:\\programming\\wdm-driver\\passthru>





[编辑 -  4/9/02 作者: moqingsong]
按第一贴的“给分”键,给分。
guardee
驱动巨牛
驱动巨牛
  • 注册日期2002-11-08
  • 最后登录2010-05-29
  • 粉丝2
  • 关注1
  • 积分2分
  • 威望34点
  • 贡献值0点
  • 好评度6点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-04-08 20:37
只要能够编译通过,没有错误,能够得到自己想要的文件就可以啦!管他那么多干什么呢!
moqingsong
论坛版主
论坛版主
  • 注册日期2002-04-07
  • 最后登录2011-02-03
  • 粉丝0
  • 关注0
  • 积分74分
  • 威望71点
  • 贡献值0点
  • 好评度10点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2002-04-09 09:23
那样我不每编译一次都得删一次文件了吗,有点太麻烦了。各位都是这么干的吗?我是不是那个参数没设对呀?比如-b -w什么的。
按第一贴的“给分”键,给分。
Levis75
驱动小牛
驱动小牛
  • 注册日期2001-08-06
  • 最后登录2006-06-28
  • 粉丝0
  • 关注0
  • 积分68分
  • 威望7点
  • 贡献值0点
  • 好评度4点
  • 原创分0分
  • 专家分0分
地板#
发布于:2002-04-09 14:36
没那么复杂吧,直接build就OK了。
moqingsong
论坛版主
论坛版主
  • 注册日期2002-04-07
  • 最后登录2011-02-03
  • 粉丝0
  • 关注0
  • 积分74分
  • 威望71点
  • 贡献值0点
  • 好评度10点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2002-04-09 15:15
咱直接build 了一下,是这样的:

E:\\programming\\wdm-driver\\passthru>build
BUILD: Object root set to: ==> objchk
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Loading D:\\PROGRA~1\\NTDDK\\build.dat...
BUILD: Computing Include file dependencies:
BUILD: Examining e:\\programming\\wdm-driver\\passthru directory for files to compi
le.
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\win
base.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\win
gdi.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\win
user.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\win
nls.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\win
reg.h: cannot find include file <macwin32.h>
BUILD: e:\\programming\\wdm-driver\\passthru\\passthru.rc: d:\\progra~1\\ntddk\\inc\\mms
ystem.h: cannot find include file <macwin32.h>
BUILD: Linking e:\\programming\\wdm-driver\\passthru directory
BUILD: Done


E:\\programming\\wdm-driver\\passthru>
按第一贴的“给分”键,给分。
guardee
驱动巨牛
驱动巨牛
  • 注册日期2002-11-08
  • 最后登录2010-05-29
  • 粉丝2
  • 关注1
  • 积分2分
  • 威望34点
  • 贡献值0点
  • 好评度6点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2002-04-09 15:56
你用BUILD /CF就可以,详细的你看BUILD /?吧
bible
驱动牛犊
驱动牛犊
  • 注册日期2001-09-03
  • 最后登录2009-04-07
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2002-04-09 15:58
Edit source file, like the following :
......
SOURCES= passthru.c    \\
         protocol.c    \\
         miniport.c    \\
         passthru.rc
.......

delete the last line passthru.rc.

SOURCES= passthru.c    \\
         protocol.c    \\
         miniport.c    

try !


moqingsong
论坛版主
论坛版主
  • 注册日期2002-04-07
  • 最后登录2011-02-03
  • 粉丝0
  • 关注0
  • 积分74分
  • 威望71点
  • 贡献值0点
  • 好评度10点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2002-04-09 16:50
谢谢guardee,bible
我先照guardee的方法试了一下,已经可以了,bible的方法还没来得及试,先谢了,还有Levis75也谢了。


E:\\programming\\wdm-driver\\passthru>build  /cf
BUILD: Object root set to: ==> objchk
BUILD: /i switch ignored
BUILD: Compile and Link for i386
BUILD: Loading D:\\PROGRA~1\\NTDDK\\build.dat...
BUILD: Computing Include file dependencies:
BUILD: d:\\program files\\microsoft visual studio\\vc98\\include\\exdisp.odl(31): d:\\
program files\\microsoft visual studio\\vc98\\include\\exdisp.odl - invalid include
statement: importlib(STDOLE_TLB);
BUILD: d:\\program files\\microsoft visual studio\\vc98\\include\\vidsvr.odl(16): d:\\
program files\\microsoft visual studio\\vc98\\include\\vidsvr.odl - invalid include
statement: importlib(STDOLE_TLB);
BUILD: d:\\progra~1\\micros~1\\vc98\\include\\exdisp.odl(31): d:\\progra~1\\micros~1\\vc
98\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: d:\\progra~1\\micros~1\\vc98\\include\\vidsvr.odl(16): d:\\progra~1\\micros~1\\vc
98\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: Examining e:\\programming\\wdm-driver\\passthru directory for files to compi
le.
    e:\\programming\\wdm-driver\\passthru - 5 source files (2,870 lines)
BUILD: Saving D:\\PROGRA~1\\NTDDK\\build.dat...
BUILD: Compiling e:\\programming\\wdm-driver\\passthru directory
Compiling Precompiled Header - precomp.h for i386
Compiling - passthru.rc for i386
Compiling - passthru.c for i386
Compiling - protocol.c for i386
Compiling - miniport.c for i386
BUILD: Linking e:\\programming\\wdm-driver\\passthru directory
Linking Executable - objchk\\i386\\passthru.sys for i386
BUILD: Done

    5 files compiled
    1 executable built

E:\\programming\\wdm-driver\\passthru>
按第一贴的“给分”键,给分。
qingshui
驱动牛犊
驱动牛犊
  • 注册日期2002-03-07
  • 最后登录2003-01-02
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
8楼#
发布于:2002-07-24 13:03
为什么不用SRC2DSP然后在IDE里面编译~~
mail_csj
驱动牛犊
驱动牛犊
  • 注册日期2002-12-02
  • 最后登录2003-02-27
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
9楼#
发布于:2003-01-14 14:55
build -c
游客

返回顶部