阅读:3064回复:2
读寒江独钓编译有错
Launching OACR monitor
C:\WinDDK\7600.16385.0>E: E:\>cd first1 E:\first1>build path contains nonexistant %quartus_rootdir%\bin, removing BUILD: Compile and Link for x86 BUILD: Loading c:\winddk\7600.16385.0\build.dat... BUILD: Computing Include file dependencies: BUILD: Start time: Mon Mar 15 11:21:35 2010 BUILD: Examining e:\first1 directory for files to compile. BUILD: Saving c:\winddk\7600.16385.0\build.dat... BUILD: Compiling and Linking e:\first1 directory Configuring OACR for 'root:x86chk' - <OACR on> 1>errors in directory e:\first1 1>NMAKE : fatal error U1064: MAKEFILE not found and no target specified 1>nmake.exe /nologo BUILDMSG=Stop. -i BUILD_PASS=PASS2 LINKONLY=1 NOPASS0=1 MAKE DIR_RELATIVE_TO_BASEDIR= failed - rc = 2 BUILD: Finish time: Mon Mar 15 11:21:36 2010 BUILD: Done 源代码: #include<ntddk.h> VOID DriverUnload(PDRIVER_OBJECT driver) { DbgPrint("first:Our driver is unloading...\r\n"); } NTSTATUS DriverEntry(PDRIVER_OBJECT driver,PUNICODE_STRING reg_path) { DbgPrint("first:Hello,my salary!\r\n"); driver->DriverUnload=DriverUnload; return STATUS_SUCCESS; } SOURCES: TARGETNAME=first TARGETPATH=obj TARGETTYPE=DRIVER SOURCES =first.c makefile: !IF 0 Copyright (C) Microsoft Corporation, 1997 - 1998 Module Name: makefile. Notes: DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source file to this component. This file merely indirects to the real make file that is shared by all the components of Windows NT(DDK) !ENDIF !INCLUDE $(NTMAKEENV)\makefile.def 查了很多资料都不能解决,望哪位高手指点下,卡在这里好几天了!不胜感激!用的WDK是最新的WinDDK\7600.16385.0 |
|
沙发#
发布于:2010-03-19 16:46
MAKEFILE not found and no target specified
你检查一下MAKEFILE是不是有问题 |
|
板凳#
发布于:2010-03-21 11:53
从随书源码里面随便找个makefile文件把那个覆盖了,再试试
|
|