阅读:1650回复:9
关于passthru的编译问题,虽然简单但我确实没想明白
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] |
|
|
沙发#
发布于:2002-04-08 20:37
只要能够编译通过,没有错误,能够得到自己想要的文件就可以啦!管他那么多干什么呢!
|
|
板凳#
发布于:2002-04-09 09:23
那样我不每编译一次都得删一次文件了吗,有点太麻烦了。各位都是这么干的吗?我是不是那个参数没设对呀?比如-b -w什么的。
|
|
|
地板#
发布于:2002-04-09 14:36
没那么复杂吧,直接build就OK了。
|
|
地下室#
发布于: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> |
|
|
5楼#
发布于:2002-04-09 15:56
你用BUILD /CF就可以,详细的你看BUILD /?吧
|
|
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 ! |
|
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> |
|
|
8楼#
发布于:2002-07-24 13:03
为什么不用SRC2DSP然后在IDE里面编译~~
|
|
9楼#
发布于:2003-01-14 14:55
build -c
|
|