阅读:1325回复:1
菜鸟问题!
:(我是一个刚开始学驱动开发的菜鸟!拿着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. 哪位老大能帮帮我呀!~十分感谢 |
|
沙发#
发布于:2002-05-24 12:53
显然是环境设的不对
函数找不到 |
|
|