[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 :
>>ck2.h:345: error: redefinition of 'struct sockaddr'
>I assume <winsock2.h> was already included. Try to add <ws2tcpip.h> 
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:
error: redefinition of 'struct sockaddr'
make[4]: *** [libaccess_udp_a-udp.o] Error 1
make[4]: Leaving directory 

-------------- 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