Re: Problems with libraries using C - code

Jonathan Bachrach <[email protected]> 02 Oct 2002 13:31:59 -0400
Newsgroups gmane.comp.lang.goo.general
Message-ID <[email protected]>
Benedikt Grundmann <[email protected]> writes:

> Am Sam, 2002-09-28 um 04.43 schrieb Andrew Sutherland:
> > 
> > Currently, to use modules that use .c files, you must build a new goo
> > image with those modules included.
> > 
> > For example, to build network sockets in to the goo image, you would:
> > 
> > - Edit src/eval/main.goo, and add the following line:
> > 
> > (use goo/io/net)
> > 
> I tried that. Actually I added these two lines:
> (use samurui/samurui)
> (use goo/io/net)
> 
> > - Then, in the REPL of a running goo:
> > 
> > (use eval/g2c)
> > (g2c-test "magic") ;; sets the output dir to "g2c-magic" off of goo/c
> > (g2c-top) ;; builds a new image in "g2c-magic"
> During execution of that call a Stack overflow happened :-(

we just checked in a working samurui and a compiler that compiles it.
i tried it myself.  try again with the latest cvs files.

jonathan