阅读:1163回复:5
求教如何在内存中映射一块区域
我现在需要在内存中映射一块区域,我使用了NdisAllocteMemory函数,但在编译过程中,程序提示外部连接错误,WHY!!!!
|
|
沙发#
发布于:2003-02-11 13:14
是编译错?还是连接错?
|
|
板凳#
发布于:2003-02-11 13:20
NdisSetPhysicalAddressHigh (phyaddr, 0);
NdisSetPhysicalAddressLow (phyaddr, 0xffffffff); state = NdisAllocateMemory(&VirtualAddress, sizeof(VirtualAddress), 0, phyaddr); if (state == NDIS_STATUS_SUCCESS) NdisZeroMemory((PVOID)VirtualAddress, sizeof(VirtualAddress)); Linking... Control.obj : error LNK2001: unresolved external symbol \"__declspec(dllimport) int __stdcall NdisAllocateMemory(void * *,unsigned int,unsigned int,union _LARGE_INTEGER)\" (__imp_?NdisAllocateMemory@@YGHPAPAXIIT_LARGE_INTEGER@@@Z) objchk\\i386\\ISDNDriver.sys : fatal error LNK1120: 1 unresolved externals Error executing link.exe. |
|
地板#
发布于:2003-02-11 20:52
应该是缺lib文件。
|
|
地下室#
发布于:2003-02-12 01:47
缺lib
|
|
5楼#
发布于:2003-02-12 07:58
我应该加哪些lib文件
|
|