zhenkui2008
驱动牛犊
驱动牛犊
  • 注册日期2005-07-05
  • 最后登录2008-06-26
  • 粉丝0
  • 关注0
  • 积分260分
  • 威望27点
  • 贡献值0点
  • 好评度26点
  • 原创分0分
  • 专家分0分
阅读:2777回复:2

这样的错误怎么处理呢 大家指点下

楼主#
更多 发布于:2008-04-11 15:55
本人刚开始学习驱动编程的 按照书上的一步一步地做下来了 但是出现了这样的问题
麻烦大家给我说下
谢谢
Current DDK Directory = F:\WINDDK\2600
Building for i386
******Configuration: MyOwn - Win32 Free *************


D:\ZHENKU~1\Driver\MyOwn\driver>call F:\WINDDK\2600\bin\setenv.bat F:\WINDDK\2600 fre  

D:\ZHENKU~1\Driver\MyOwn\driver>build.exe -ceZ
BUILD: Object root set to: ==> objfre
BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.
BUILD: /i switch ignored
BUILD: Using 2 child processes
BUILD: Compile and Link for i386
BUILD: Examining d:\zhenku~1\driver\myown\driver directory for files to compile.
    d:\zhenku~1\driver\myown\driver
BUILD: Compiling d:\zhenku~1\driver\myown\driver directory
1>Compiling - myown.rc for i386
1>Compiling - myowndriver.cpp for i386
1>Compiling - myowndevice.cpp for i386
BUILD: Linking d:\zhenku~1\driver\myown\driver directory
1>Linking Executable - objfre\i386\myown.sys for i386
1>myowndriver.obj() : error LNK2019: unresolved external symbol "long (__thiscall KDevice::** IrpDispatchTable)(class KIrp)" (?IrpDispatchTable@@3PAP8KDevice@@AEJVKIrp@@@ZA) referenced in function "public: static long __stdcall KDriver::DriverIrpDispatch(struct _DEVICE_OBJECT *,struct _IRP *)" (?DriverIrpDispatch@KDriver@@SGJPAU_DEVICE_OBJECT@@PAU_IRP@@@Z)
1>myowndriver.obj() : error LNK2019: unresolved external symbol "void __stdcall TerminateCppRunTime(void)" (?TerminateCppRunTime@@YGXXZ) referenced in function "protected: static void __stdcall KDriver::UnloadDispatch(struct _DRIVER_OBJECT *)" (?UnloadDispatch@KDriver@@KGXPAU_DRIVER_OBJECT@@@Z)
1>myowndriver.obj() : error LNK2019: 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) referenced in function "public: virtual long __thiscall MyOwnDriver::AddDevice(struct _DEVICE_OBJECT *)" (?AddDevice@MyOwnDriver@@UAEJPAU_DEVICE_OBJECT@@@Z)
1>myowndriver.obj() : error LNK2019: 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) referenced in function _DriverEntry@8
1>myowndriver.obj() : error LNK2019: unresolved external symbol "long __stdcall InitializeCppRunTime(void)" (?InitializeCppRunTime@@YGJXZ) referenced in function _DriverEntry@8
1>myowndriver.obj() : error LNK2019: unresolved external symbol _atexit referenced in function _$E1
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: long __thiscall KPnpDevice::DecrementOutstandingRequestCount(void)" (?DecrementOutstandingRequestCount@KPnpDevice@@QAEJXZ) referenced in function "public: long __thiscall KIrp::PnpComplete(class KPnpDevice *,long,char)" (?PnpComplete@KIrp@@QAEJPAVKPnpDevice@@JD@Z)
1>myowndevice.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_STATE@@W4_SYSTEM_POWER_STATE@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSystemSleep(class KIrp)" (?OnSystemSleep@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSystemPowerUp(class KIrp)" (?OnSystemPowerUp@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::WaitRemove(unsigned __int64)" (?WaitRemove@KPnpDevice@@UAEJ_K@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::WaitStop(unsigned __int64)" (?WaitStop@KPnpDevice@@UAEJ_K@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual void __thiscall KPnpDevice::ProcessHeldRequests(unsigned char)" (?ProcessHeldRequests@KPnpDevice@@UAEXE@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::HoldIrp(class KIrp)" (?HoldIrp@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnBusReset(class KIrp)" (?OnBusReset@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSurpriseRemoval(class KIrp)" (?OnSurpriseRemoval@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnDeviceUsageNotification(class KIrp)" (?OnDeviceUsageNotification@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnFilterResourceRequirements(class KIrp)" (?OnFilterResourceRequirements@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryDeviceText(class KIrp)" (?OnQueryDeviceText@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryPower(class KIrp)" (?OnQueryPower@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSetPower(class KIrp)" (?OnSetPower@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnPowerSequence(class KIrp)" (?OnPowerSequence@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnWaitWake(class KIrp)" (?OnWaitWake@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryBusInformation(class KIrp)" (?OnQueryBusInformation@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryDeviceState(class KIrp)" (?OnQueryDeviceState@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryId(class KIrp)" (?OnQueryId@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSetLock(class KIrp)" (?OnSetLock@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnEject(class KIrp)" (?OnEject@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnWriteConfig(class KIrp)" (?OnWriteConfig@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnReadConfig(class KIrp)" (?OnReadConfig@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryResourceRequirements(class KIrp)" (?OnQueryResourceRequirements@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryResources(class KIrp)" (?OnQueryResources@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryCapabilities(class KIrp)" (?OnQueryCapabilities@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryInterface(class KIrp)" (?OnQueryInterface@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryDeviceRelations(class KIrp)" (?OnQueryDeviceRelations@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnCancelStopDevice(class KIrp)" (?OnCancelStopDevice@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryStopDevice(class KIrp)" (?OnQueryStopDevice@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnCancelRemoveDevice(class KIrp)" (?OnCancelRemoveDevice@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryRemoveDevice(class KIrp)" (?OnQueryRemoveDevice@KPnpDevice@@UAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "protected: virtual long __thiscall KPnpDevice::Pnp(class KIrp)" (?Pnp@KPnpDevice@@MAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "protected: virtual long __thiscall KPnpDevice::Power(class KIrp)" (?Power@KPnpDevice@@MAEJVKIrp@@@Z)
1>myowndevice.obj() : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::DeviceIrpDispatch(struct _IRP *)" (?DeviceIrpDispatch@KPnpDevice@@UAEJPAU_IRP@@@Z)
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: virtual void __thiscall KPnpDevice::SetPowerPolicy(unsigned char)" (?SetPowerPolicy@KPnpDevice@@UAEXE@Z) referenced in function "public: __thiscall MyOwnDevice::MyOwnDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0MyOwnDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: virtual void __thiscall KPnpDevice::SetPnpPolicy(void)" (?SetPnpPolicy@KPnpDevice@@UAEXXZ) referenced in function "public: __thiscall MyOwnDevice::MyOwnDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0MyOwnDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: long __thiscall KPnpLowerDevice::Initialize(class KDevice *,struct _DEVICE_OBJECT *)" (?Initialize@KPnpLowerDevice@@QAEJPAVKDevice@@PAU_DEVICE_OBJECT@@@Z) referenced in function "public: __thiscall MyOwnDevice::MyOwnDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0MyOwnDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: __thiscall KPnpLowerDevice::KPnpLowerDevice(void)" (??0KPnpLowerDevice@@QAE@XZ) referenced in function "public: __thiscall MyOwnDevice::MyOwnDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0MyOwnDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: __thiscall KPnpDevice::KPnpDevice(struct _DEVICE_OBJECT *,struct _GUID const *)" (??0KPnpDevice@@QAE@PAU_DEVICE_OBJECT@@PBU_GUID@@@Z) referenced in function "public: __thiscall MyOwnDevice::MyOwnDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0MyOwnDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: virtual __thiscall KPnpDevice::~KPnpDevice(void)" (??1KPnpDevice@@UAE@XZ) referenced in function "public: virtual __thiscall MyOwnDevice::~MyOwnDevice(void)" (??1MyOwnDevice@@UAE@XZ)
1>myowndevice.obj() : error LNK2019: unresolved external symbol "public: static void __cdecl KDevice::operator delete(void *)" (??3KDevice@@SAXPAX@Z) referenced in function "public: virtual void * __thiscall MyOwnDevice::`scalar deleting destructor'(unsigned int)" (??_GMyOwnDevice@@UAEPAXI@Z)
1>objfre\i386\myown.sys() : error LNK1120: 49 unresolved externals
BUILD: Done

    5 files compiled
    1 executable built - 50 Errors
Tool returned code: 0
zhenkui2008
驱动牛犊
驱动牛犊
  • 注册日期2005-07-05
  • 最后登录2008-06-26
  • 粉丝0
  • 关注0
  • 积分260分
  • 威望27点
  • 贡献值0点
  • 好评度26点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2008-04-13 12:51
不用Driver Studio了 用vs加上Driver  Wizard了
zhenkui2008
驱动牛犊
驱动牛犊
  • 注册日期2005-07-05
  • 最后登录2008-06-26
  • 粉丝0
  • 关注0
  • 积分260分
  • 威望27点
  • 贡献值0点
  • 好评度26点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2008-04-15 14:23
但是还是要弄清楚啊 我找了lib库也找不到包含这几个函数的啊 大家帮帮忙啊
游客

返回顶部