阅读:1281回复:1
DS连接错误,请教
系统DDK+VS2005+DS3.2
连接老是出问题 BUILD: Linking c:\driver~1\test\driver directory Linking Executable - objchk_wxp_x86\i386\test.sys for i386 errors in directory c:\driver~1\test\driver 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_STATE@@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.cpp文件中类testDriver 继承于 KDriver:class testDriver : public KDriver testdevice.cpp编译生成testdevice.obj,KDriver::***包含于vdw_wdm.obj中,在sourese文件中我已经有TARGETLIBS=$(TARGETLIBS) $(DRIVERWORKS)\lib\*\$(BUILDTYPE)\vdw_wdm.lib一句. ///////////////// 从上面的输出来看,好象是连接程序寻找继承于父类的函数时不能从父类的类库中提取出相应的代码. 请教高手,我是在哪里出错了,还是系统未设置好? |
|
沙发#
发布于:2007-05-13 12:18
已解决问题,是在编译库函数时一个参数选错.
|
|