Re: [Cegcc-devel] Linker doesn't find winsock

2008-04-04 Thread Carsten Sørensen
On Fri, Apr 4, 2008 at 7:24 AM, Vincent Torri <[EMAIL PROTECTED]> wrote: > that order is important only on Windows (gcc for windows). On linux, ou can > put the static libs in any order you want. If I'm not mistaken, the problem > is the format of the executable files (ELF on linux and COFF or a v

Re: [Cegcc-devel] Linker doesn't find winsock

2008-04-03 Thread Vincent Torri
On Wed, 2 Apr 2008, Carsten Sørensen wrote: On Tue, Apr 1, 2008 at 6:06 PM, Tijl Vercaemer <[EMAIL PROTECTED]> wrote: 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 optio

Re: [Cegcc-devel] Linker doesn't find winsock

2008-04-03 Thread Tijl Vercaemer
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

Re: [Cegcc-devel] Linker doesn't find winsock

2008-04-02 Thread Carsten Sørensen
On Tue, Apr 1, 2008 at 6:06 PM, Tijl Vercaemer <[EMAIL PROTECTED]> wrote: > 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 and the input file. Moving it > after the

[Cegcc-devel] Linker doesn't find winsock

2008-04-01 Thread Tijl Vercaemer
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

Re: [Cegcc-devel] Linker doesn't find winsock

2008-04-01 Thread Danny Backx
On Mon, 2008-03-31 at 16:26 +0200, Tijl Vercaemer wrote: > 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-winc

[Cegcc-devel] Linker doesn't find winsock

2008-03-31 Thread Tijl Vercaemer
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