我这两天遇到一个问题,我用的是wince 5.0 ,build的时候,老是提示下面的链接错误,请教各位,怎么fullibc.lib怎么会出问题呢?有什么办法可以解决吗?
BUILD: [01:0000000342:ERRORE] fulllibc.lib(output.obj) : error LNK2019: unresolved external symbol WideCharToMultiByte referenced in function _output
BUILD: [01:0000000343:ERRORE] fulllibc.lib(putwclk.obj) : error LNK2001: unresolved external symbol WideCharToMultiByte
BUILD: [01:0000000344:ERRORE] fulllibc.lib(output.obj) : error LNK2019: unresolved external symbol IsDBCSLeadByte referenced in function _output
BUILD: [01:0000000345:ERRORE] fulllibc.lib(woutput.obj) : error LNK2001: unresolved external symbol IsDBCSLeadByte
BUILD: [01:0000000346:ERRORE] fulllibc.lib(crtlib.obj) : error LNK2019: unresolved external symbol DeleteCriticalSection referenced in function _CRTDLL_INIT
BUILD: [01:0000000347:ERRORE] fulllibc.lib(crtlib.obj) : error LNK2019: unresolved external symbol InitializeCriticalSection referenced in function _CRTDLL_INIT
BUILD: [01:0000000348:ERRORE] fulllibc.lib(crtlib.obj) : error LNK2019: unresolved external symbol LeaveCriticalSection referenced in function InitStdio
BUILD: [01:0000000349:ERRORE] fulllibc.lib(crtlib.obj) : error LNK2019: unresolved external symbol xxx_GetProcAddressW referenced in function InitStdio
BUILD: [01:0000000350:ERRORE] fulllibc.lib(crtlib.obj) : error LNK2001: unresolved external symbol hInstCoreDll
BUILD: [01:0000000351:ERRORE] fulllibc.lib(crtlib.obj) : error LNK2019: unresolved external symbol EnterCriticalSection referenced in function InitStdio
BUILD: [01:0000000352:ERRORE] fulllibc.lib(cvt.obj) : error LNK2019: unresolved external symbol _isctype referenced in function _forcdecpt
BUILD: [01:0000000353:ERRORE] fulllibc.lib(strgtold.obj) : error LNK2001: unresolved external symbol _isctype
BUILD: [01:0000000354:ERRORE] fulllibc.lib(woutput.obj) : error LNK2019: unresolved external symbol MultiByteToWideChar referenced in function _woutput
BUILD: [01:0000000355:ERRORE] fulllibc.lib(corecrt.obj) : error LNK2019: unresolved external symbol TlsSetValue referenced in function GetCRTStorage
BUILD: [01:0000000356:ERRORE] fulllibc.lib(corecrt.obj) : error LNK2019: unresolved external symbol xxx_MapPtrToProcess referenced in function GetCRTStorage
BUILD: [01:0000000357:ERRORE] fulllibc.lib(corecrt.obj) : error LNK2019: unresolved external symbol xxx_PerformCallBack4 referenced in function GetCRTStorage
BUILD: [01:0000000358:ERRORE] fulllibc.lib(corecrt.obj) : error LNK2019: unresolved external symbol LocalAlloc referenced in function GetCRTStorage
BUILD: [01:0000000359:ERRORE] fulllibc.lib(corecrt.obj) : error LNK2019: unresolved external symbol xxx_GetOwnerProcess referenced in function GetCRTStorage
BUILD: [01:0000000360:ERRORE] fulllibc.lib(corecrt.obj) : error LNK2019: unresolved external symbol TlsGetValue referenced in function GetCRTStorage
BUILD: [01:0000000361:ERRORE] D:\WINCE500\platform\tcc7801\target\ARMV4I\retail\wtcBoot.exe : fatal error LNK1120: 16 unresolved externals
谢谢zzhll,
后来查到不是这个这原因,是因我使用了sprintf这个函数,按理在boot阶段包含了这个 fulllibc.lib 就能够使用这些标准函数的,像memcpy,memncpy什么的都可以用,搞不懂为什么用这个就用了,后来把这个用自己写的的代替就能编译通过了。