liumda
驱动小牛
驱动小牛
  • 注册日期2002-01-23
  • 最后登录2012-07-16
  • 粉丝0
  • 关注0
  • 积分76分
  • 威望48点
  • 贡献值0点
  • 好评度7点
  • 原创分0分
  • 专家分0分
阅读:2648回复:10

请教斑竹:你的“10分钟完成一个USB驱动程序”我在连接时怎么这么多的错误?

楼主#
更多 发布于:2002-04-17 11:19
错误列表如下:
Linking...
TEST.obj : error LNK2001: unresolved external symbol __imp__SCCoverEpilog@4
TESTDevice.obj : error LNK2001: unresolved external symbol __imp__SCCoverEpilog@4
TEST.obj : error LNK2001: unresolved external symbol \"struct BchkdInfo_t  BoundsChecker::BchkdInfo\" (?BchkdInfo@BoundsChecker@@3UBchkdInfo_t@@A)
TEST.obj : error LNK2001: unresolved external symbol \"public: __thiscall KRegistryKey::KRegistryKey(enum __registryRoot,unsigned short const *,unsigned char,unsigned long,unsigned long,unsigned long)\" (??0KRegistryKey@@QAE@W4__registryRoot@@PBGEKKK@
Z)
TEST.obj : error LNK2001: unresolved external symbol \"void __stdcall InitializeCppRunTime(void)\" (?InitializeCppRunTime@@YGXXZ)
TEST.obj : error LNK2001: unresolved external symbol \"long __stdcall BoundsChecker::Init(struct _DRIVER_OBJECT *)\" (?Init@BoundsChecker@@YGJPAU_DRIVER_OBJECT@@@Z)
TEST.obj : error LNK2001: unresolved external symbol __imp__SCCoverLine@8
TESTDevice.obj : error LNK2001: unresolved external symbol __imp__SCCoverLine@8
TEST.obj : error LNK2001: unresolved external symbol __imp__SCCoverProlog@12
TESTDevice.obj : error LNK2001: unresolved external symbol __imp__SCCoverProlog@12
TEST.obj : error LNK2001: unresolved external symbol \"class KDriver *  BoundsChecker::DriverInstance\" (?DriverInstance@BoundsChecker@@3PAVKDriver@@A)
TEST.obj : error LNK2001: unresolved external symbol \"long (__thiscall KDevice::**  IrpDispatchTable)(class KIrp)\" (?IrpDispatchTable@@3PAP8KDevice@@AEJVKIrp@@@ZA)
TEST.obj : error LNK2001: unresolved external symbol \"void __stdcall TerminateCppRunTime(void)\" (?TerminateCppRunTime@@YGXXZ)
TEST.obj : error LNK2001: unresolved external symbol \"public: __thiscall KTrace::KTrace(char *,unsigned long,enum TRACE_LEVEL,enum BREAK_LEVEL,struct _UNICODE_STRING *,struct _KINTERRUPT *)\" (??0KTrace@@QAE@PADKW4TRACE_LEVEL@@W4BREAK_LEVEL@@PAU_UNIC
ODE_STRING@@PAU_KINTERRUPT@@@Z)
TEST.obj : error LNK2001: unresolved external symbol _atexit
TEST.obj : error LNK2001: unresolved external symbol \"public: __thiscall KTrace::~KTrace(void)\" (??1KTrace@@QAE@XZ)
TEST.obj : error LNK2001: unresolved external symbol \"public: long __thiscall KRegistryKey::QueryValue(unsigned short const *,unsigned long *)\" (?QueryValue@KRegistryKey@@QAEJPBGPAK@Z)
TEST.obj : error LNK2001: unresolved external symbol \"public: __thiscall KRegistryKey::KRegistryKey(struct _UNICODE_STRING *,unsigned short const *,unsigned char,unsigned long,unsigned long,unsigned long)\" (??0KRegistryKey@@QAE@PAU_UNICODE_STRING@@P
BGEKKK@Z)
TEST.obj : error LNK2001: unresolved external symbol \"public: void __cdecl KTrace::Trace(enum TRACE_LEVEL,char *,...)\" (?Trace@KTrace@@QAAXW4TRACE_LEVEL@@PADZZ)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: void __cdecl KTrace::Trace(enum TRACE_LEVEL,char *,...)\" (?Trace@KTrace@@QAAXW4TRACE_LEVEL@@PADZZ)
TEST.obj : error LNK2001: unresolved external symbol \"public: static void * __cdecl KDevice::operator new(unsigned int,unsigned short const *,unsigned long,unsigned short const *,unsigned long,unsigned long)\" (??2KDevice@@SAPAXIPBGK0KK@Z)
TEST.obj : error LNK2001: unresolved external symbol \"public: __thiscall KUnitizedName::KUnitizedName(unsigned short const *,unsigned long,unsigned long)\" (??0KUnitizedName@@QAE@PBGKK@Z)
TEST.obj : error LNK2001: unresolved external symbol \"public: void __thiscall KUnitizedName::Invalidate(void)\" (?Invalidate@KUnitizedName@@QAEXXZ)
TEST.obj : error LNK2001: unresolved external symbol \"public: static void __cdecl KDevice::operator delete(void *)\" (??3KDevice@@SAXPAX@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: static void __cdecl KDevice::operator delete(void *)\" (??3KDevice@@SAXPAX@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual enum _DEVICE_POWER_STATE  __thiscall KPnpDevice::DetermineNewDevicePowerState(enum _SYSTEM_POWER_STATE)\" (?DetermineNewDevicePowerState@KPnpDevice@@UAE?AW4_DEVICE_POWER_STAT
E@@W4_SYSTEM_POWER_STATE@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnSystemSleep(class KIrp)\" (?OnSystemSleep@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnSystemPowerUp(class KIrp)\" (?OnSystemPowerUp@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::WaitRemove(unsigned __int64)\" (?WaitRemove@KPnpDevice@@UAEJ_K@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::WaitStop(unsigned __int64)\" (?WaitStop@KPnpDevice@@UAEJ_K@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual void __thiscall KPnpDevice::ProcessHeldRequests(unsigned char)\" (?ProcessHeldRequests@KPnpDevice@@UAEXE@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::HoldIrp(class KIrp)\" (?HoldIrp@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnBusReset(class KIrp)\" (?OnBusReset@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnSurpriseRemoval(class KIrp)\" (?OnSurpriseRemoval@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnDeviceUsageNotification(class KIrp)\" (?OnDeviceUsageNotification@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnFilterResourceRequirements(class KIrp)\" (?OnFilterResourceRequirements@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryDeviceText(class KIrp)\" (?OnQueryDeviceText@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryPower(class KIrp)\" (?OnQueryPower@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnSetPower(class KIrp)\" (?OnSetPower@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnPowerSequence(class KIrp)\" (?OnPowerSequence@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnWaitWake(class KIrp)\" (?OnWaitWake@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryBusInformation(class KIrp)\" (?OnQueryBusInformation@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryDeviceState(class KIrp)\" (?OnQueryDeviceState@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryId(class KIrp)\" (?OnQueryId@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnSetLock(class KIrp)\" (?OnSetLock@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnEject(class KIrp)\" (?OnEject@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnWriteConfig(class KIrp)\" (?OnWriteConfig@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnReadConfig(class KIrp)\" (?OnReadConfig@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryResourceRequirements(class KIrp)\" (?OnQueryResourceRequirements@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryResources(class KIrp)\" (?OnQueryResources@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryCapabilities(class KIrp)\" (?OnQueryCapabilities@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryInterface(class KIrp)\" (?OnQueryInterface@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryDeviceRelations(class KIrp)\" (?OnQueryDeviceRelations@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnCancelStopDevice(class KIrp)\" (?OnCancelStopDevice@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryStopDevice(class KIrp)\" (?OnQueryStopDevice@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnCancelRemoveDevice(class KIrp)\" (?OnCancelRemoveDevice@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::OnQueryRemoveDevice(class KIrp)\" (?OnQueryRemoveDevice@KPnpDevice@@UAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"protected: virtual long __thiscall KPnpDevice::Pnp(class KIrp)\" (?Pnp@KPnpDevice@@MAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"protected: virtual long __thiscall KPnpDevice::Power(class KIrp)\" (?Power@KPnpDevice@@MAEJVKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual long __thiscall KPnpDevice::DeviceIrpDispatch(struct _IRP *)\" (?DeviceIrpDispatch@KPnpDevice@@UAEJPAU_IRP@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual void __thiscall KPnpDevice::SetPowerPolicy(unsigned char)\" (?SetPowerPolicy@KPnpDevice@@UAEXE@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: virtual void __thiscall KPnpDevice::SetPnpPolicy(void)\" (?SetPnpPolicy@KPnpDevice@@UAEXXZ)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: __thiscall KPnpDevice::KPnpDevice(struct _DEVICE_OBJECT *,struct _GUID const *)\" (??0KPnpDevice@@QAE@PAU_DEVICE_OBJECT@@PBU_GUID@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: long __thiscall KPnpLowerDevice::Initialize(class KDevice *,struct _DEVICE_OBJECT *)\" (?Initialize@KPnpLowerDevice@@QAEJPAVKDevice@@PAU_DEVICE_OBJECT@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: __thiscall KPnpDevice::~KPnpDevice(void)\" (??1KPnpDevice@@QAE@XZ)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: long __thiscall KPnpDevice::DecrementOutstandingRequestCount(void)\" (?DecrementOutstandingRequestCount@KPnpDevice@@QAEJXZ)
TESTDevice.obj : error LNK2001: unresolved external symbol \"public: class KTrace & __thiscall KTrace::operator<<(class KIrp)\" (??6KTrace@@QAEAAV0@VKIrp@@@Z)
TESTDevice.obj : error LNK2001: unresolved external symbol \"protected: __thiscall _listcore::_listcore(unsigned long)\" (??0_listcore@@IAE@K@Z)
vdw_wdm.lib(kusb.obj) : error LNK2001: unresolved external symbol \"public: void * __thiscall _listcore::_head(void)\" (?_head@_listcore@@QAEPAXXZ)
vdw_wdm.lib(kusb.obj) : error LNK2001: unresolved external symbol \"public: void * __thiscall _listcore::_next(void *)\" (?_next@_listcore@@QAEPAXPAX@Z)
vdw_wdm.lib(kusb.obj) : error LNK2001: unresolved external symbol \"public: void __thiscall _listcore::_insertTail(void *)\" (?_insertTail@_listcore@@QAEXPAX@Z)
vdw_wdm.lib(kusb.obj) : error LNK2001: unresolved external symbol \"public: void * __thiscall _listcore::_remove(void *)\" (?_remove@_listcore@@QAEPAXPAX@Z)
vdw_wdm.lib(kusb.obj) : error LNK2001: unresolved external symbol \"public: unsigned long __thiscall _listcore::_count(void)\" (?_count@_listcore@@QAEKXZ)
vdw_wdm.lib(kusb.obj) : error LNK2001: unresolved external symbol \"public: void __thiscall _listcore::_reset(void)\" (?_reset@_listcore@@QAEXXZ)
.\\objchk\\i386\\TEST.sys : fatal error LNK1120: 69 unresolved externals
Error executing link.exe.

TEST.sys - 75 error(s), 0 warning(s)
是我的设置不对还是别的什么原因?请各位大师指教
You Happy,So I Happy!
游客

返回顶部