阅读:2598回复:6
那个DRIVER STUDIO 简直是垃圾
装了好几天总是出问题,不是这事就是那事,最后总算编译没错了,结果连接是错误一大堆,网上找人问结果也没人知道,垃圾,靠.
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) |
|
沙发#
发布于:2007-01-19 16:35
很明显,是库的bug.hehe
你是不是安装后没有编译库? |
|
|
板凳#
发布于:2007-01-19 16:44
我已经编译库了,不过只编译了WDM和NT的库,其他64位的库编译不了,不知道为什么
|
|
地板#
发布于:2007-03-04 15:46
你要编译六十四位的库干什么?
|
|
地下室#
发布于:2007-03-20 21:10
缺少64位的ddk吧
|
|
5楼#
发布于:2007-04-06 10:39
不会用就来发牢骚,哎。。。。
|
|
6楼#
发布于:2007-04-26 13:28
不会用就来发牢骚,哎!!!!!!!!!
|
|