阅读:1344回复:7
怎么编译ddk下的例子程序呀??
I have set the Enviroment Variables,Howerver,I still
couldn't get throught.The Error is like this: --------------------------------------------------- Microsoft Windows XP [版本 5.1.2600] (C) 版权所有 1985-2001 Microsoft Corp. D:\MFC\NTDDK\src\input\mouser>build BUILD: Compile and Link for i386 BUILD: Computing Include file dependencies: BUILD: c:\program files\microsoft visual studio\vc98\include\exdisp.odl(31): c:\ program files\microsoft visual studio\vc98\include\exdisp.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: c:\program files\microsoft visual studio\vc98\include\vidsvr.odl(16): c:\ program files\microsoft visual studio\vc98\include\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: Examining d:\mfc\ntddk\src\input\mouser directory for files to compile. d:\mfc\ntddk\src\input\mouser - 1 Pass Zero files (168 lines) BUILD: Unable to save the dependency database: \nt\build.dat BUILD: Building generated files in d:\mfc\ntddk\src\input\mouser BUILD: NMAKE.EXE failed - rc = 2 BUILD: Examining d:\mfc\ntddk\src\input\mouser directory for files to compile. ( 2nd Pass) BUILD: ERROR - "d:\mfc\ntddk\src\input\mouser\obj\_objects.mac" file time is in the future. d:\mfc\ntddk\src\input\mouser - 10 source files (6,203 lines) BUILD: Unable to save the dependency database: \nt\build.dat BUILD: Compiling d:\mfc\ntddk\src\input\mouser directory BUILD: NMAKE.EXE failed - rc = 2 BUILD: Linking d:\mfc\ntddk\src\input\mouser directory BUILD: NMAKE.EXE failed - rc = 2 BUILD: Done D:\MFC\NTDDK\src\input\mouser> --------------------------------------------------- Help!! |
|
沙发#
发布于:2004-09-23 11:15
你在安装完XPDDK后,用了BUILD - CZ没?然后在DS中编译了VDWLIBS。DSW没?如果你这些都做好了,应该不会出现上面这样的问题,不过,你要是调式需要硬件支持的驱动的话,如果你没硬件,那一定是会有问题的!
我自己的见解,你可以试试 |
|
板凳#
发布于:2004-09-23 11:20
用DriverStudio带的Source to DSP Converter打开DDK例子的source,可以将例子直接转换成一个VC++工程。
这个方法最简单,不过得先有了DriverStudio,呵呵。 |
|
|
地板#
发布于:2004-09-23 11:32
Driver Studio??
Currently,I only have vc6,I don't want to install Driver Studio,since It is not a must for building WDM driver! I only compile the examples supplied in DDK,I want to get .sys file. Not to debug it,Should I still need the corresponding Hardware in such case????? Thanks a million for the above two dude! You are kind! |
|
地下室#
发布于:2004-09-23 12:51
我Up.
|
|
5楼#
发布于:2004-09-23 13:13
try:
build -cZ |
|
6楼#
发布于:2004-09-23 13:38
你可以直接用 build -cZ,不过得在DDK得build environment(check or free)里面,否则会报错。
|
|
|
7楼#
发布于:2004-09-23 15:41
搞定!
Run setenv.bat after Install |
|