Re: [Cegcc-devel] Trouble with select() function

2008-06-17 Thread Danny Backx
On Tue, 2008-06-17 at 08:54 +0100, Hywel B. Richards wrote: > Do you really need to call WSAStartup when you are using cegcc (of the > non-mingw variety)? > > Wouldn't the POSIX compatibility provided by newlib do this for you? Hmm, apparently it does. I didn't know that. Does anyone know how go

Re: [Cegcc-devel] Trouble with select() function

2008-06-17 Thread Hywel B. Richards
Do you really need to call WSAStartup when you are using cegcc (of the non-mingw variety)? Wouldn't the POSIX compatibility provided by newlib do this for you? I ask with interest as I also want to do some networking stuff soon. I was assuming that if I used cegcc-mingw then I would need WSASta

Re: [Cegcc-devel] Trouble with select() function

2008-06-16 Thread Lance Fetters
Danny, Carsten, thanks for the responses... Danny Backx wrote: > I believe you need to call WSAStartup before any winsock call. That's > a difference between sockets on Unix (Linux, ..) and on Windows. Calling WSAStartup also caused a segfault, in __MS_WSAStartup; like select, it is also due t

Re: [Cegcc-devel] Trouble with select() function

2008-06-16 Thread Carsten Sørensen
Also - you cannot use select() on file handles. Only sockets. Kind regards, Carsten Sørensen On Mon, Jun 16, 2008 at 17:15, Danny Backx <[EMAIL PROTECTED]> wrote: > I believe you need to call WSAStartup before any winsock call. That's a > difference between sockets on Unix (Linux, ..) and on Wind

Re: [Cegcc-devel] Trouble with select() function

2008-06-16 Thread Danny Backx
I believe you need to call WSAStartup before any winsock call. That's a difference between sockets on Unix (Linux, ..) and on Windows. Danny On Mon, 2008-06-16 at 22:21 +0900, Lance Fetters wrote: > Target: Windows Mobile 6.0 > Compiler: cegcc (both 0.51.0 and SVN (updated 2008-06-14)) >

[Cegcc-devel] Trouble with select() function

2008-06-16 Thread Lance Fetters
Target: Windows Mobile 6.0 Compiler: cegcc (both 0.51.0 and SVN (updated 2008-06-14)) I'm having issues getting select() to work on my target; note that I have yet to try testing other targets. When I tried to run the sample code included in the glibc man-page, I found that it would segfault on t