阅读:2355回复:8
上帝阿,各位高手阿,救救我吧!
我在RTL8139网卡的驱动程序内加入一段代码,用CREATEFILE\\READFILE等函数读取配置文件信息,但是编译老是出错,
编译错误如下,请各位高手多多援手! BUILD: Computing Include file dependencies: BUILD: Examining c:\\ntddk\\src\\network\\ndis\\decoder directory for files to compile. BUILD: c:\\ntddk\\src\\network\\ndis\\decoder\\rtsnt.rc: c:\\ntddk\\inc\\winbase.h: cannot find include file <macwin32.h> BUILD: c:\\ntddk\\src\\network\\ndis\\decoder\\rtsnt.rc: c:\\ntddk\\inc\\wingdi.h: cannot find include file <macwin32.h> BUILD: c:\\ntddk\\src\\network\\ndis\\decoder\\rtsnt.rc: c:\\ntddk\\inc\\winuser.h: cannot find include file <macwin32.h> BUILD: c:\\ntddk\\src\\network\\ndis\\decoder\\rtsnt.rc: c:\\ntddk\\inc\\winnls.h: cannot find include file <macwin32.h> BUILD: c:\\ntddk\\src\\network\\ndis\\decoder\\rtsnt.rc: c:\\ntddk\\inc\\winreg.h: cannot find include file <macwin32.h> BUILD: c:\\ntddk\\src\\network\\ndis\\decoder\\rtsnt.rc: c:\\ntddk\\inc\\mmsystem.h: cannot find include file <macwin32.h> Linking c:\\ntddk\\src\\network\\ndis\\decoder directory ******************** \'nmake.exe /c BUILDMSG=Stop. -i LINKONLY=1 NOPASS0=1 NTTEST= UMTEST= 386=1\' link -out:objfre\\i386\\RTL8139.sys -machine:ix86 @C:\\WIN98\\TEMP\\nma64285. Microsoft (R) Incremental Linker Version 5.12.8181 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. -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 -optidata -driver -align:0x200 -subsystem:native,5.00 -base:0x10000 -entry:DriverEntry@8 -out:objfre\\i386\\RTL8139.sys objfre\\i386\\rtsnt.res objfre\\i386\\interrup.obj objfre\\i386\\card.obj objfre\\i386\\link.obj objfre\\i386\\power.obj objfre\\i386\\send.obj objfre\\i386\\rtsnt.obj c:\\NTDDK\\libfre\\i386\\ntoskrnl.lib c:\\NTDDK\\libfre\\i386\\hal.lib c:\\NTDDK\\libfre\\i386\\wmilib.lib c:\\NTDDK\\libfre\\i386\\ndis.lib rtsnt.obj : error LNK2001: unresolved external symbol __imp__free rtsnt.obj : error LNK2001: unresolved external symbol __imp__ReadFile@20 rtsnt.obj : error LNK2001: unresolved external symbol __imp__CloseHandle@4 rtsnt.obj : error LNK2001: unresolved external symbol __imp__malloc rtsnt.obj : error LNK2001: unresolved external symbol __imp__GetFileSize@8 rtsnt.obj : error LNK2001: unresolved external symbol __imp__CreateFileA@28 objfre\\i386\\RTL8139.sys : fatal error LNK1120: 6 unresolved externals Stop. 如果那位做过类似的,请给一段源代码吧,我可以用<<Windows 2000驱动程序设计指南>>的中文电子版文档及所副\"源码\"交换!该书价值RMB 155大洋喔. |
|
最新喜欢:wingma...
|
沙发#
发布于:2008-06-11 23:03
关注中,楼主是怎么解决的?
|
|
|
板凳#
发布于:2008-06-11 09:52
我也遇到了类似的问题。能不能说说你是怎么解决的?
|
|
地板#
发布于:2004-09-29 08:49
我也遇到了同样的问题,也就是编译时提示找不到macwin32.h文件,但只是warning。
请问你是如何解决这个问题的? |
|
|
地下室#
发布于:2002-01-25 18:40
书已上载到站上,估计很快可以通过审查,提供给大家下载
|
|
|
5楼#
发布于:2002-01-25 18:01
没有回答问题的,能不能给我书呀?谢谢你.
|
|
6楼#
发布于:2002-01-23 20:13
问题已找到!谢谢上面的朋友!
|
|
|
7楼#
发布于:2002-01-22 14:58
try to edit your sources file.
the following is ne2000 sources file. .... SOURCES=interrup.c \\ ne2000.c \\ card.c \\ ne2000.rc ..... delete the last line, ne2000.rc. maybe ,you should delete the last line-----rtsnt.rc. |
|
8楼#
发布于:2002-01-22 14:28
能否贴出你的部分代码?
|
|
|