force_eagle
驱动小牛
驱动小牛
  • 注册日期2002-05-06
  • 最后登录2009-02-26
  • 粉丝0
  • 关注0
  • 积分387分
  • 威望61点
  • 贡献值0点
  • 好评度33点
  • 原创分0分
  • 专家分0分
阅读:1325回复:1

菜鸟问题!

楼主#
更多 发布于:2002-05-24 12:39
 :(我是一个刚开始学驱动开发的菜鸟!拿着WIN2000DDK就迫不及待的弄了起来!搞了半天才找了一些资料来,配置好环境!就拿着DDK的例子试了起来!没料到第一个就出错了!
就是src\\general\\portio下的那个例子!在编译gpdread的时候!出现的一大批链接错误!就是下面这些-STACK:262144,4096
-MERGE:_PAGE=PAGE
-MERGE:_TEXT=.text
-SECTION:INIT,d
-OPT:REF
-OPT:ICF
-IGNORE:4001,4037,4039,4044,4065,4070,4078,4087,4089,4198
-INCREMENTAL:NO
-FULLBUILD
-FORCE:MULTIPLE
-NOCOMMENT
/release
-NODEFAULTLIB
-debug:FULL
-debugtype:cv
-version:5.00
-osversion:5.00
-merge:.rdata=.text
/tsaware
-subsystem:console,4.00
-base:0x400000
-entry:mainCRTStartup
-optidata
objchk\\i386\\genport.res
objchk\\i386\\genport.obj
D:\\PROGRA~1\\NTDDK\\libchk\\i386\\libc.lib
D:\\PROGRA~1\\NTDDK\\libchk\\i386\\advapi32.lib
D:\\PROGRA~1\\NTDDK\\libchk\\i386\\kernel32.lib
genport.obj : error LNK2001: unresolved external symbol _DbgPrint
genport.obj : error LNK2001: unresolved external symbol __imp__IoInitializeRemov
eLockEx@20
genport.obj : error LNK2001: unresolved external symbol __imp__IoDeleteDevice@4
genport.obj : error LNK2001: unresolved external symbol __imp__IoDeleteSymbolicL
ink@4
genport.obj : error LNK2001: unresolved external symbol __imp__IoAttachDeviceToD
eviceStack@8
genport.obj : error LNK2001: unresolved external symbol __imp__IoCreateSymbolicL
ink@8
genport.obj : error LNK2001: unresolved external symbol __imp__IoCreateDevice@28

genport.obj : error LNK2001: unresolved external symbol __imp__RtlInitUnicodeStr
ing@8
genport.obj : error LNK2001: unresolved external symbol __imp__RtlAssert@16
genport.obj : error LNK2001: unresolved external symbol __imp__KeGetCurrentIrql@
0
genport.obj : error LNK2001: unresolved external symbol __imp__KeSetEvent@12
genport.obj : error LNK2001: unresolved external symbol __imp__IoReleaseRemoveLo
ckEx@12
genport.obj : error LNK2001: unresolved external symbol __imp__KeWaitForSingleOb
ject@20
genport.obj : error LNK2001: unresolved external symbol __imp__KeInitializeEvent
@12
genport.obj : error LNK2001: unresolved external symbol __imp__IoDetachDevice@4
genport.obj : error LNK2001: unresolved external symbol __imp_@IofCallDriver@8
genport.obj : error LNK2001: unresolved external symbol __imp__IoReleaseRemoveLo
ckAndWaitEx@12
genport.obj : error LNK2001: unresolved external symbol __imp__MmUnmapIoSpace@8
genport.obj : error LNK2001: unresolved external symbol __imp_@IofCompleteReques
t@8
genport.obj : error LNK2001: unresolved external symbol __imp__IoAcquireRemoveLo
ckEx@20
genport.obj : error LNK2001: unresolved external symbol _DbgBreakPoint@0
genport.obj : error LNK2001: unresolved external symbol __imp__MmMapIoSpace@16
genport.obj : error LNK2001: unresolved external symbol __imp__PoCallDriver@8
genport.obj : error LNK2001: unresolved external symbol __imp__PoStartNextPowerI
rp@4
genport.obj : error LNK2001: unresolved external symbol __imp__READ_REGISTER_UCH
AR@4
genport.obj : error LNK2001: unresolved external symbol __imp__READ_REGISTER_USH
ORT@4
genport.obj : error LNK2001: unresolved external symbol __imp__READ_REGISTER_ULO
NG@4
genport.obj : error LNK2001: unresolved external symbol __imp__READ_PORT_UCHAR@4

genport.obj : error LNK2001: unresolved external symbol __imp__READ_PORT_USHORT@
4
genport.obj : error LNK2001: unresolved external symbol __imp__READ_PORT_ULONG@4

genport.obj : error LNK2001: unresolved external symbol __imp__WRITE_REGISTER_UC
HAR@8
genport.obj : error LNK2001: unresolved external symbol __imp__WRITE_REGISTER_US
HORT@8
genport.obj : error LNK2001: unresolved external symbol __imp__WRITE_REGISTER_UL
ONG@8
genport.obj : error LNK2001: unresolved external symbol __imp__WRITE_PORT_UCHAR@
8
genport.obj : error LNK2001: unresolved external symbol __imp__WRITE_PORT_USHORT
@8
genport.obj : error LNK2001: unresolved external symbol __imp__WRITE_PORT_ULONG@
8
libc.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
objchk\\i386\\gpdread.exe : fatal error LNK1120: 37 unresolved externals
NMAKE : fatal error U1077: \'link\' : return code \'0x460\'
Stop.

哪位老大能帮帮我呀!~十分感谢

zydcat
驱动老牛
驱动老牛
  • 注册日期2001-12-06
  • 最后登录2006-04-12
  • 粉丝0
  • 关注0
  • 积分9分
  • 威望2点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2002-05-24 12:53
显然是环境设的不对
函数找不到
[color=red]肥虫虫[/color] [img]http://www.driverdevelop.com/forum/upload/bradley/2002-11-15_ig01.gif[/img]
游客

返回顶部