I am trying to compile vlc-0.8.6c for WinCE using the cegcc compiler. I am facing this error in file open.cpp :
I have seached on the web, and it is told that some functions from UNICODE standard are not implemented in cegcc headers file. Indeed, I did not find any definition of functions swprintf and swscanf.g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -D_OFF_T_ -D_off_t=long -DSYS_MINGWCE -I../../../include `top_builddir="../../.." ../../../vlc-config --cxxflags builtin pic wince` -Wsign-compare -Wall -D__stdcall= -D_OFF_T_ -D__USE_W32_SOCKETS -D__CEGCC__ -D_WIN32_WCE -DUNDER_CE -I/opt/cegcc/arm-wince-cegcc/include -pipe -c -o libwince_a-open.o `test -f 'open.cpp' || echo './'`open.cpp
<command line>:1:1: warning: "__stdcall" redefined
<built-in>: warning: this is the location of the previous definition
open.cpp: In member function 'void OpenDialog::NetPanel(HWND__*)':
open.cpp:356: error: 'swprintf' was not declared in this scope
open.cpp: In member function 'void OpenDialog::OnNetPanelChange(int)':
open.cpp:717: error: 'swscanf' was not declared in this scope
There could be, I think, two solutions for such a problem :
First, to replace the cegcc wchar.h header with another one that defines this functions.
Or, to replace these functions with supported WinCE functions, that are defined under cegcc.
If anyone has a better idea, I am interested in it