阅读:3180回复:5
请教:nmake.exe failed - rc = 2产生原因和修改方法
小弟修改他人驱动程序
原驱动程序是在用vc6.0+DDK2000环境下工程 我现在vc.net2003+DDKXP1+DriverStudio3.2环境下编译此如下错误 E:\WORKPR~1\MC8000~1\DRIVER~1.0\sys>call C:\WINDDK\2600.1106\bin\w2k\set2k.bat C:\WINDDK\2600.1106 checked E:\WORKPR~1\MC8000~1\DRIVER~1.0\sys>build.exe -ceZ BUILD: Adding /Y to COPYCMD so xcopy ops won't hang. BUILD: Object root set to: ==> objchk_w2K_x86 BUILD: Compile and Link for i386 BUILD: Examining e:\workpr~1\mc8000~1\driver~1.0\sys directory for files to compile. e:\workpr~1\mc8000~1\driver~1.0\sys BUILD: Compiling e:\workpr~1\mc8000~1\driver~1.0\sys directory Compiling - mc8000p.rc for i386 Compiling - mc8000p.cpp for i386 Compiling - mc8000pdevice.cpp for i386 Compiling - generating code... for i386 NMAKE : U1073: don't know how to make 'objchk_w2K_x86\i386\*.sbr' BUILD: nmake.exe failed - rc = 2 BUILD: Compile errors: not linking e:\workpr~1\mc8000~1\driver~1.0\sys directory BUILD: Done 4 files compiled - 1 Error 小弟也查过相关资料说SOURCE文件配置错误 小弟初学驱动编程虽然看过DDK里SOURCES文件介绍但功力不深没看明白 我把SOURCES文件列出,请大侠们指点一下,小弟这里十分感谢了。 # SOURCES for use with BUILD command TARGETNAME=MC8000P TARGETPATH=obj TARGETTYPE=DRIVER DRIVERTYPE=WDM !IF ("$(DDKBUILDENV)"=="chk") || ("$(DDKBUILDENV)"=="checked") BUILDTYPE = CHECKED !ELSE BUILDTYPE = FREE NTDEBUG= !ENDIF TARGETLIBS=$(DRIVERWORKS)\lib\*\$(BUILDTYPE)\vdw_wdm.lib # Put Win2K DDK specific defines in this section. !IF "$(LATEST_WIN32_WINNT_VERSION)" == "0x0500" || "$(LATEST_WIN32_WINNT_VERSION)" == "0x0501" # Put NT4/Win98 DDK specific defines in this section. !ELSE # Need to create the directory for the output in NT4/Win98 ! IF [mkdir $(TARGETPATH)\i386\$(BUILDTYPE)] > 1 ! ERROR Failed to create output directory. ! ENDIF !ENDIF C_DEFINES=-DNTVERSION='WDM' BROWSER_INFO=1 RCNOFONTMAP=1 LINK_LIB_IGNORE=4210 INCLUDES=$(DRIVERWORKS)\include;\ $(DRIVERWORKS)\source;\ $(DRIVERWORKS)\..\common\include\stl;\ $(DRIVERWORKS)\include\dep_vxd SOURCES=MC8000P.rc MC8000P.cpp MC8000PDevice.cpp |
|
沙发#
发布于:2007-12-18 20:35
我和你遇到几乎同样的问题,顶一下,期待高人解答
|
|
板凳#
发布于:2007-12-19 17:18
期待中
|
|
地板#
发布于:2007-12-20 10:17
怎么没有人愿意解答啊,是觉得太简单了吗?
|
|
地下室#
发布于:2008-01-04 16:54
再顶
|
|
5楼#
发布于:2008-01-11 17:26
NMAKE : U1073: don't know how to make 'objchk_w2K_x86\i386\*.sbr'
这里出了错 把SOURCE这样写下看看 TARGETNAME=MC8000P TARGETPATH=obj TARGETTYPE=DRIVER DRIVERTYPE=WDM SOURCES=MC8000P.rc MC8000P.cpp MC8000PDevice.cpp |
|