ytweiwei
驱动牛犊
驱动牛犊
  • 注册日期2006-10-27
  • 最后登录2007-01-22
  • 粉丝0
  • 关注0
  • 积分60分
  • 威望7点
  • 贡献值0点
  • 好评度6点
  • 原创分0分
  • 专家分0分
阅读:2598回复:6

那个DRIVER STUDIO 简直是垃圾

楼主#
更多 发布于:2007-01-19 15:47
  装了好几天总是出问题,不是这事就是那事,最后总算编译没错了,结果连接是错误一大堆,网上找人问结果也没人知道,垃圾,靠.
Compiling resources with DDK resource compiler...
Compiling with DDK compiler...
RegSample.cpp
RegSampleDevice.cpp
Linking with DDK linker...
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall KPnpDevice::SetPowerPolicy(unsigned char)" (?SetPowerPolicy@KPnpDevice@@UAEXE@Z)
RegSampleDevice.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)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSystemSleep(class KIrp)" (?OnSystemSleep@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSystemPowerUp(class KIrp)" (?OnSystemPowerUp@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnDeviceSleep(class KIrp)" (?OnDeviceSleep@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnDevicePowerUp(class KIrp)" (?OnDevicePowerUp@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::WaitRemove(unsigned __int64)" (?WaitRemove@KPnpDevice@@UAEJ_K@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::WaitStop(unsigned __int64)" (?WaitStop@KPnpDevice@@UAEJ_K@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall KPnpDevice::ProcessHeldRequests(unsigned char)" (?ProcessHeldRequests@KPnpDevice@@UAEXE@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::HoldIrp(class KIrp)" (?HoldIrp@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnBusReset(class KIrp)" (?OnBusReset@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSurpriseRemoval(class KIrp)" (?OnSurpriseRemoval@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnDeviceUsageNotification(class KIrp)" (?OnDeviceUsageNotification@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnFilterResourceRequirements(class KIrp)" (?OnFilterResourceRequirements@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryDeviceText(class KIrp)" (?OnQueryDeviceText@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryPower(class KIrp)" (?OnQueryPower@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSetPower(class KIrp)" (?OnSetPower@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnPowerSequence(class KIrp)" (?OnPowerSequence@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnWaitWake(class KIrp)" (?OnWaitWake@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryBusInformation(class KIrp)" (?OnQueryBusInformation@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryDeviceState(class KIrp)" (?OnQueryDeviceState@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryId(class KIrp)" (?OnQueryId@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnSetLock(class KIrp)" (?OnSetLock@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnEject(class KIrp)" (?OnEject@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnWriteConfig(class KIrp)" (?OnWriteConfig@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnReadConfig(class KIrp)" (?OnReadConfig@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryResourceRequirements(class KIrp)" (?OnQueryResourceRequirements@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryResources(class KIrp)" (?OnQueryResources@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryCapabilities(class KIrp)" (?OnQueryCapabilities@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryInterface(class KIrp)" (?OnQueryInterface@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryDeviceRelations(class KIrp)" (?OnQueryDeviceRelations@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnCancelStopDevice(class KIrp)" (?OnCancelStopDevice@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryStopDevice(class KIrp)" (?OnQueryStopDevice@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnCancelRemoveDevice(class KIrp)" (?OnCancelRemoveDevice@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::OnQueryRemoveDevice(class KIrp)" (?OnQueryRemoveDevice@KPnpDevice@@UAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "protected: virtual long __thiscall KPnpDevice::Pnp(class KIrp)" (?Pnp@KPnpDevice@@MAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "protected: virtual long __thiscall KPnpDevice::Power(class KIrp)" (?Power@KPnpDevice@@MAEJVKIrp@@@Z)
RegSampleDevice.obj : error LNK2001: unresolved external symbol "public: virtual long __thiscall KPnpDevice::DeviceIrpDispatch(struct _IRP *)" (?DeviceIrpDispatch@KPnpDevice@@UAEJPAU_IRP@@@Z)
RegSampleDevice.obj : error LNK2019: unresolved external symbol "public: virtual void __thiscall KPnpDevice::SetPnpPolicy(void)" (?SetPnpPolicy@KPnpDevice@@UAEXXZ) referenced in function "public: __thiscall RegSampleDevice::RegSampleDevice(struct _D
EVICE_OBJECT *,unsigned long)" (??0RegSampleDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
RegSampleDevice.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 functio
n "public: __thiscall RegSampleDevice::RegSampleDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0RegSampleDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
RegSampleDevice.obj : error LNK2019: unresolved external symbol "public: __thiscall KPnpLowerDevice::KPnpLowerDevice(void)" (??0KPnpLowerDevice@@QAE@XZ) referenced in function "public: __thiscall RegSampleDevice::RegSampleDevice(struct _DEVICE_OBJEC
T *,unsigned long)" (??0RegSampleDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
RegSampleDevice.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
 RegSampleDevice::RegSampleDevice(struct _DEVICE_OBJECT *,unsigned long)" (??0RegSampleDevice@@QAE@PAU_DEVICE_OBJECT@@K@Z)
RegSampleDevice.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall KPnpDevice::~KPnpDevice(void)" (??1KPnpDevice@@UAE@XZ) referenced in function "public: virtual __thiscall RegSampleDevice::~RegSampleDevice(void)" (??1RegSam
pleDevice@@UAE@XZ)
RegSampleDevice.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)
.\objchk\i386\RegSample.sys : fatal error LNK1120: 44 unresolved externals
Error executing link.exe.

RegSample.sys - 45 error(s), 0 warning(s)
znsoft
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2023-10-25
  • 粉丝300
  • 关注6
  • 积分910分
  • 威望14796点
  • 贡献值7点
  • 好评度2410点
  • 原创分5分
  • 专家分100分
  • 社区居民
  • 最爱沙发
  • 社区明星
沙发#
发布于:2007-01-19 16:35
很明显,是库的bug.hehe
你是不是安装后没有编译库?
http://www.zndev.com 免费源码交换网 ----------------------------- 软件创造价值,驱动提供力量! 淡泊以明志,宁静以致远。 ---------------------------------- 勤用搜索,多查资料,先搜再问。
ytweiwei
驱动牛犊
驱动牛犊
  • 注册日期2006-10-27
  • 最后登录2007-01-22
  • 粉丝0
  • 关注0
  • 积分60分
  • 威望7点
  • 贡献值0点
  • 好评度6点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2007-01-19 16:44
我已经编译库了,不过只编译了WDM和NT的库,其他64位的库编译不了,不知道为什么
AK-47
驱动牛犊
驱动牛犊
  • 注册日期2007-02-22
  • 最后登录2008-08-19
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望9点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
地板#
发布于:2007-03-04 15:46
你要编译六十四位的库干什么?
wang_bml
驱动牛犊
驱动牛犊
  • 注册日期2004-05-27
  • 最后登录2011-12-21
  • 粉丝0
  • 关注0
  • 积分131分
  • 威望24点
  • 贡献值0点
  • 好评度14点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2007-03-20 21:10
缺少64位的ddk吧
bouy2006fly
驱动牛犊
驱动牛犊
  • 注册日期2007-04-06
  • 最后登录2009-07-02
  • 粉丝0
  • 关注0
  • 积分242分
  • 威望45点
  • 贡献值0点
  • 好评度24点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2007-04-06 10:39
不会用就来发牢骚,哎。。。。
liming1980710
驱动牛犊
驱动牛犊
  • 注册日期2007-04-26
  • 最后登录2007-04-28
  • 粉丝0
  • 关注0
  • 积分80分
  • 威望9点
  • 贡献值0点
  • 好评度8点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2007-04-26 13:28
不会用就来发牢骚,哎!!!!!!!!!
游客

返回顶部