[vlc-devel] Re: WinCE Cross compile

James MacLean macleajb at ednet.ns.ca
Fri Jul 29 17:18:48 CEST 2005


Rémi Denis-Courmont wrote:

>Le Vendredi 29 Juillet 2005 16:55, James MacLean a écrit :
>  
>
>>/usr/local/wince/cross-tools/lib/gcc/arm-wince-pe/4.1.0/include/winso
>>ck2.h:345: error: redefinition of 'struct sockaddr'
>>    
>>
>
>I assume <winsock2.h> was already included. Try to add <ws2tcpip.h> 
>maybe.
>
>  
>
Hi Folks,

Original was :

#if defined( UNDER_CE )
#   include <winsock.h>
...

Changed to :

#if defined( UNDER_CE )
#   include <winsock.h>
#   include <ws2tcpip.h>
...

and it complained about should use winsock2.h.. So changed it to  :

#if defined( UNDER_CE )
#   include <winsock2.h>
#   include <ws2tcpip.h>
....

and go the error reported before:

make[4]: `libaccess_directory.a' is up to date.
if arm-wince-pe-gcc -mcpu=xscale -DHAVE_CONFIG_H -I. -I. -I../..   
-D_OFF_T_ -D_off_t=long -DSYS_MINGWCE -I../../include 
`top_builddir="../.." ../../vlc-config --cflags builtin access_udp` 
-Wsign-compare -Wall  -I/usr/local/wince/contrib-xscale/include -pipe 
-MT libaccess_udp_a-udp.o -MD -MP -MF ".deps/libaccess_udp_a-udp.Tpo" -c 
-o libaccess_udp_a-udp.o `test -f 'udp.c' || echo './'`udp.c; \
then mv -f ".deps/libaccess_udp_a-udp.Tpo" 
".deps/libaccess_udp_a-udp.Po"; else rm -f 
".deps/libaccess_udp_a-udp.Tpo"; exit 1; fi
In file included from ../../include/vlc_common.h:450,
                 from ../../include/vlc/vlc.h:149,
                 from udp.c:33:
../../include/vlc_threads.h:152: warning: '__stdcall__' attribute 
directive ignored
../../include/vlc_threads.h:153: warning: '__stdcall__' attribute 
directive ignored
In file included from ../../include/network.h:30,
                 from udp.c:36:
/usr/local/wince/cross-tools/lib/gcc/arm-wince-pe/4.1.0/include/winsock2.h:345: 
error: redefinition of 'struct sockaddr'
make[4]: *** [libaccess_udp_a-udp.o] Error 1
make[4]: Leaving directory 
`/mnt/raid/usr/local/src/VCD/SoftWare/VLC/vlc-trunk-axim/modules/access'

JES
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3684 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20050729/147e2461/attachment.bin>


More information about the vlc-devel mailing list