Hi,
I'm trying to compile a simple application that uses winsock2. I'm
using arm-wince-mingw32ce-gcc version 0.51.0 (from the
mandriva-*.tar.gz downloads) on Linux.
This is what I do:
arm-wince-mingw32ce-gcc -L/opt/mingw32ce/arm-wince-mingw32ce/lib -lws2
-o ipvideo.exe ipvideo.c
The result is a
2008/3/31, Danny Backx <[EMAIL PROTECTED]>:
> I can compile it with :
> arm-wince-mingw32ce-gcc -o echo.exe echo.c -lws2
This works, and it helped me to figure out why my code didn't link.
Apparently, the -lws2 option should be at the end of the command. I
had my -lws2 in between the -o option
2008/4/2, Carsten Sørensen <[EMAIL PROTECTED]>:
> That's a general gcc feature, the order of libraries and objects is
> important. When gcc sees a library on the commandline, only those
> parts of it that have already been referenced by a previous library
> or object file are included. In your