首页
社区
课程
招聘
[旧帖] [求助]link.exe 连接错误 0.00雪花
发表于: 2008-5-17 17:22 8106

[旧帖] [求助]link.exe 连接错误 0.00雪花

2008-5-17 17:22
8106
C:\LWssdt>C:\KmdKit4D\tools\omf2coff.exe /NOLOGO /ALIGN:32 /BASE:0x10000 /SUBSYS
TEM:NATIVE /DRIVER /FORCE:UNRESOLVED /FORCE:MULTIPLE /ENTRY:DriverEntry Driver.o
bj ntddk.obj lib\ntdll.lib lib\ntutils.lib lib\ntoskrnl.lib lib\hal.lib lib\win3
2k.lib /OUT:Driver.sys
Driver.obj : warning LNK4033: converting object format from OMF to COFF
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
Driver.obj : warning LNK4006: Driver already defined in Driver.obj; second defin
ition ignored
ntddk.obj : warning LNK4033: converting object format from OMF to COFF
ntddk.obj : warning LNK4006: initialization already defined in Driver.obj; secon
d definition ignored
ntddk.obj : warning LNK4006: Finalization already defined in Driver.obj; second
definition ignored
Driver.obj : error LNK2001: unresolved external symbol _stricmp
Driver.obj : error LNK2001: unresolved external symbol RtlInitAnsiString
Driver.obj : error LNK2001: unresolved external symbol RtlAnsiStringToUnicodeStr
ing
Driver.obj : error LNK2001: unresolved external symbol ZwReadFile
Driver.obj : error LNK2001: unresolved external symbol ExAllocatePoolWithTag
Driver.obj : error LNK2001: unresolved external symbol ZwClose
Driver.obj : error LNK2001: unresolved external symbol aaHandleFinallysqqrv
ntddk.obj : error LNK2001: unresolved external symbol aaHandleFinallysqqrv
Driver.obj : error LNK2001: unresolved external symbol ExFreePoolWithTag
Driver.obj : error LNK2001: unresolved external symbol ZwOpenFile
Driver.obj : error LNK2001: unresolved external symbol strcat
Driver.obj : error LNK2001: unresolved external symbol RtlFreeUnicodeString
Driver.obj : error LNK2001: unresolved external symbol ZwQuerySystemInformation
Driver.obj : error LNK2001: unresolved external symbol ZwSetInformationFile
Driver.obj : error LNK2001: unresolved external symbol KeServiceDescriptorTable
Driver.obj : error LNK2001: unresolved external symbol strcpy
Driver.sys : warning LNK4088: image being generated due to /FORCE option; image
may not run

关键是这种
Driver.obj : error LNK2001: unresolved external symbol _stricmp.

这个错误要怎么解决

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (8)
雪    币: 722
活跃值: (123)
能力值: ( LV12,RANK:300 )
在线值:
发帖
回帖
粉丝
2
ntdll.lib lib和ntoskrnl.lib里面定义的函数,很多是重复的。
因为ntdll是在Ring3下用的,而ntoskrnl是在Ring0
既然是写驱动的话,就不应该include ntdll.lib
2008-5-17 18:18
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
附件里有原代码

只提供了几个文件 Driver.pas ntddk.pas MakeEx.bat
上传的附件:
2008-5-17 20:29
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
结贴了...没有用这个驱动了
2008-5-21 08:02
0
雪    币: 200
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
LZ.留个联系QQ.
这两天也在玩你那个RESSDT驱动.
想采用那个VC版的驱动.DELPHI来加载它.
2008-5-21 14:49
0
雪    币: 222
活跃值: (13)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
6
驱动太多了,那个未必好的
2008-8-7 20:54
0
雪    币: 222
活跃值: (13)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
7
你传的这几个文件还是原来的,并没有修改好的
2008-8-7 20:55
0
雪    币: 135
活跃值: (11)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
8
LS的为什么编译不成?我的编译的很好啊 相当好用 不用修改!!
2008-8-8 23:29
0
雪    币: 22
活跃值: (443)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
9
ls的说下 如何设置的
2008-9-18 22:51
0
游客
登录 | 注册 方可回帖
返回
//