[Cegcc-devel] Ruby / WinCE ARM... working apart from one unresolved symbol

2008-02-24 Thread john
Hi folks There's already an existing version of Ruby for CE/ARM, but you need MS EMVC++ and the Windows Mobile SDK to build... I've tried all combinations and just couldn't get the thing to build... and it seems all existing binaries have a string handling problem (google: ruby wince wince::str

Re: [Cegcc-devel] Ruby / WinCE ARM... working apart from one unresolved symbol

2008-02-24 Thread Danny Backx
Hi John, Very nice work you did ! On Sun, 2008-02-24 at 09:23 +, john wrote: > I'm now trying to tie up a few loose ends, and one thing I couldn't sort > out was an error when trying to build the socket extensions for Ruby - one > the functions that they use is h_errno; the code compiles cl

Re: [Cegcc-devel] Ruby / WinCE ARM... working apart from one unresolved symbol

2008-02-24 Thread john
Thanks for the kind comments :-) I haven't touched any C since my University days! On Sun, 24 Feb 2008, Danny Backx wrote: > Hi John, > > Very nice work you did ! > > On Sun, 2008-02-24 at 09:23 +, john wrote: >> I'm now trying to tie up a few loose ends, and one thing I couldn't sort >> out

Re: [Cegcc-devel] Ruby / WinCE ARM... working apart from one unresolved symbol

2008-02-24 Thread john
So what I've done is this: #ifdef CEGCC h_error = strerror(GetLastError()); if (hp == NULL) { switch (h_error) { case ENETDOWN: case ENODATA: error = EAI_NODATA; break; c

Re: [Cegcc-devel] Ruby / WinCE ARM... working ap art from one unresolved symbol

2008-02-24 Thread Pedro Alves
A Sunday 24 February 2008 13:18:58, Danny Backx wrote: > Hi John, > > Very nice work you did ! > Indeed! > On Sun, 2008-02-24 at 09:23 +, john wrote: > > I'm now trying to tie up a few loose ends, and one thing I couldn't sort > > out was an error when trying to build the socket extensions fo

Re: [Cegcc-devel] Ruby / WinCE ARM... working ap art from one unresolved symbol

2008-02-24 Thread john
http://www.target-earth.net/gadgets/code/rubyce.html#sockets By an absolute miracle, my rusty, decrepit, decade-previous C coding knowledge has somehow not been in vain. Sockets actually *work* :-O I don't know how robust it is, but at the very least it can resolve the local hostname and talk