阅读:1035回复:3
link时出错,以前的贴子不能解决,请高手帮帮忙
[sell=50,] 小弟是初学,比较急,请各位大哥帮帮忙
--------------------Configuration: SWFaxModem - Win32 Debug-------------------- Compiling... init.c D:\Source Code\WinMDM\Synway fax modm drive\init.c(556) : warning C4244: '+=' : conversion from 'unsigned long ' to 'unsigned short ', possible loss of data Linking... init.obj : error LNK2001: unresolved external symbol __imp__KeInitializeEvent pnp.obj : error LNK2001: unresolved external symbol __imp__KeInitializeEvent init.obj : error LNK2001: unresolved external symbol __imp__IoDeleteDevice pnp.obj : error LNK2001: unresolved external symbol __imp__IoDeleteDevice init.obj : error LNK2001: unresolved external symbol __imp__IoAttachDeviceToDeviceStack init.obj : error LNK2001: unresolved external symbol __imp__IoCreateDevice init.obj : error LNK2001: unresolved external symbol __imp__IoDeleteSymbolicLink init.obj : error LNK2001: unresolved external symbol __imp__IoCreateSymbolicLink init.obj : error LNK2001: unresolved external symbol __imp__IoGetDeviceProperty init.obj : error LNK2001: unresolved external symbol __imp__IoOpenDeviceRegistryKey ioctl.obj : error LNK2001: unresolved external symbol __imp__IoReleaseCancelSpinLock readwrit.obj : error LNK2001: unresolved external symbol __imp__IoReleaseCancelSpinLock ioctl.obj : error LNK2001: unresolved external symbol __imp__IoAcquireCancelSpinLock readwrit.obj : error LNK2001: unresolved external symbol __imp__IoAcquireCancelSpinLock pnp.obj : error LNK2001: unresolved external symbol __imp__KeSetEvent util.obj : error LNK2001: unresolved external symbol __imp__KeSetEvent pnp.obj : error LNK2001: unresolved external symbol __imp__IoDetachDevice pnp.obj : error LNK2001: unresolved external symbol __imp__KeWaitForSingleObject Debug/SWFaxModem.SYS : fatal error LNK1120: 13 unresolved externals Error executing link.exe. Creating browse info file... SWFaxModem.SYS - 19 error(s), 1 warning(s)[/sell] |
|
沙发#
发布于:2005-08-09 13:44
按以前的帖子解决方法加了
#ifdef __cplusplus extern "C" { #endif //#include "wdm.h" #include <ntddk.h> #include <ntddser.h> #ifdef __cplusplus } #endif 错误还是同上 |
|
板凳#
发布于:2005-08-09 20:58
这明显是缺库
到ddk目录下,用windows的搜索功能搜索. |
|
|
地板#
发布于:2005-08-11 09:39
to :znsoft
请教一下具体缺了哪个库,这些函数我在WDM。LIB里都可以找到,也已经加了。 |
|