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 whole list of "undefined reference" errors concerning winsock functions. If I use grep to look for some of those function names, it finds them in /opt/mingw32ce/arm-wince-mingw32ce/lib/libws2.a Can anyone help me out? Thanks, Tijl The complete linker output: $ arm-wince-mingw32ce-gcc -L/opt/mingw32ce/arm-wince-mingw32ce/lib -lws2 -o ipvideo.exe ipvideo.c /tmp/ccbNx9iz.o:ipvideo.c:(.text+0xc8c): undefined reference to `send' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0xcac): undefined reference to `WSAGetLastError' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0xcc4): undefined reference to `WSACleanup' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1788): undefined reference to `WSAStartup' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1790): undefined reference to `gethostbyname' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x17a8): undefined reference to `WSAGetLastError' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x17c0): undefined reference to `WSACleanup' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x17dc): undefined reference to `socket' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x17fc): undefined reference to `WSAGetLastError' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1814): undefined reference to `WSACleanup' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x184c): undefined reference to `htons' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x187c): undefined reference to `connect' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1894): undefined reference to `WSAGetLastError' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x18ac): undefined reference to `WSACleanup' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1a00): undefined reference to `send' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1a20): undefined reference to `WSAGetLastError' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1a38): undefined reference to `WSACleanup' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1ab0): undefined reference to `recv' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1ac8): undefined reference to `WSAGetLastError' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1b5c): undefined reference to `closesocket' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1b60): undefined reference to `WSACleanup' /tmp/ccbNx9iz.o:ipvideo.c:(.text+0x1c54): undefined reference to `StringCchPrintf' collect2: ld returned 1 exit status ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel