[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with libraries using C - code
Am Mit, 2002-10-02 um 19.31 schrieb Jonathan Bachrach:
> Benedikt Grundmann <Benedikt-Grundmann@web.de> 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
Did "cvs update -d".
Compilation of a new g2c-magic worked. (use samurui/test) created a
window but when I pressed a button inside that window an error happened:
goo/user 0<= (use samurui/test)
[Loading module samurui/test...
About to add-all
Constructing a paintbox...
Returning paintbox...
Returning canvas...
About to rebind
About to update
About to show
Going to show #{<gui-window> handle: &0x8d33b80 attrs: #f children:
#[#{<gui-vbox> handle: &0x8d34ca8 attrs: #f children: #[#{<gui-label>
handle: * attrs: *} #{<happy-draw> handle: * attrs: * gc: * paintbox: *
canvas: *}]}]}
Returning canvas...
ERROR: Function #{Gen mouse-press ((widget <any>) (x <int>) (y <int>)
(button <int>) (time <int>))} called with wrong number arguments
(#{<happy-draw> handle: &0x8d398e0 attrs: (fill) gc: #f paintbox:
#{<gui-paintbox> handle: &0x8d398e0 attrs: #f gc: #{<gdk-gc> handle:
&0x8e229d8 colormap: #{<gdk-colormap> handle: *}}} canvas:
#{<gui-canvas> handle: &0x8d39f38 attrs: #f gc: #{<gdk-gc> handle:
&0x8e228d0 colormap: #{<gdk-colormap> handle: *}}}} 157 102 1).
Type ",restart N" to restart execution:
1. Return to interpreter level 1.
2. Return to interpreter level 0.
3. Exit the top-level interpreter.
goo/user 1<= ,restart 3
(use samurui/test2) resulted in an error before I saw any window:
goo/user 0<= (use samurui/test2)
[Loading module samurui/test2...
About to add-all
About to rebind
About to update
(magic:740): Gtk-CRITICAL **: file gtktreeview.c: line 6532
(gtk_tree_view_unref_tree_helper): assertion `node != NULL' failed
About to show
Going to show #{<gui-window> handle: &0x8b7ab18 attrs: #f children:
#[#{<gui-vbox> handle: &0x8b7bc40 attrs: #f children: #[#{<gui-label>
handle: * attrs: *} #{<gui-scrolled-window> handle: * attrs: * children:
*}]}]}
ERROR: No applicable methods on #{Gen master-update-slaves (<any>
<any>)} when called with (#f #{<str-hold> da-str: "Apples"}).
Type ",restart N" to restart execution:
1. Return to interpreter level 1.
2. Return to interpreter level 0.
3. Exit the top-level interpreter.
(use samurui/test3) seemed to work but after closing the main scribble
window another (small) window was created, which did not showed any
controls and wasn't closable. The goo prompt worked though and after
quitting goo the window disappeared.
I haven't got the time to do any more serious testing now. Maybe
tomorow evening / night.
Cheers,
Bene