我在wince6.0下编译SDHC驱动,在source中,默认是如下lib文件:
SOURCELIBS= \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\sdcardlib.lib \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\sdhclib.lib \
$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\sdbus.lib \
$(_PLATCOMMONLIB)\$(_CPUINDPATH)\pxa27x_ms_v1_sdhc.lib \
但是编译的时候找不到sdcardlib.lib和sdbud.lib, 我在public\common\oak\lib\ARMV4I\RETAIL目录下面,只找到了sdcardlibbase.lib和sdbus_lib.lib,去public\common\oak\drivers\sdcard目录下查看souce文件,确实没有sdcardlib.lib和sdbus.lib文件生成。
于是我将我的驱动中的source文件改成使用sdcardlibbase.lib和sdbud_lib.lib,但是编译出错,很多不可解决的外部变量错误,如:
- SDBus_lib.lib(sdenum.obj) : error LNK2001: unresolved external symbol "public: virtual int __cdecl DeviceFolder::LoadDevice(void)" (?LoadDevice@DeviceFolder@@UAAHXZ)
- SDBus_lib.lib(sdenum.obj) : error LNK2001: unresolved external symbol "public: virtual int __cdecl DeviceFolder::UnloadDevice(void)" (?UnloadDevice@DeviceFolder@@UAAHXZ)
- …………………………………………………………
- pxa27x_ms_v1_sdhc.lib(sdcontrol.obj) : error LNK2019: unresolved external symbol CloseBusAccessHandle referenced in function SDDeinitialize
- SDCardLibBase.lib(busacc.obj) : error LNK2001: unresolved external symbol CloseBusAccessHandle
- pxa27x_ms_v1_sdhc.lib(sdcontrol.obj) : error LNK2019: unresolved external symbol MmUnmapIoSpace referenced in function SDDeinitialize
- ………………………………………………
- BUILD: [01:0000000139:ERRORE] SDCardLibBase.lib(busacc.obj) : error LNK2001: unresolved external symbol BusIoControl
请问这个问题应该怎样解决呢?
非常感谢!