dragonltx
驱动牛犊
驱动牛犊
  • 注册日期2010-02-25
  • 最后登录2010-08-04
  • 粉丝0
  • 关注0
  • 积分38分
  • 威望281点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2961回复:2

读寒江独钓编译有错

楼主#
更多 发布于:2010-03-15 11:30
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



andy7002
驱动牛犊
驱动牛犊
  • 注册日期2010-03-06
  • 最后登录2010-05-29
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望11点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2010-03-19 16:46
MAKEFILE not found and no target specified
你检查一下MAKEFILE是不是有问题
hellward
驱动牛犊
驱动牛犊
  • 注册日期2009-04-16
  • 最后登录2010-06-10
  • 粉丝2
  • 关注0
  • 积分12分
  • 威望131点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2010-03-21 11:53
从随书源码里面随便找个makefile文件把那个覆盖了,再试试
游客

返回顶部