Re: [Chicken-users] chicken-setup failure with gmp

2005-07-22 Thread Raffael Cavallaro
On Jul 22, 2005, at Fri, Jul 22, 7:22 42 PM, Dale Jordan wrote:Change to: (map (lambda (s o) (list o (list s) (lambda () (run (csc -s -O2 -d0 -R syntax-case s -L -lgmp) (Ignore line breaks above).  You will need the syntax-case egg. Did the trick - thanks for your help.regards,Ralph Raffael Ca

Re: [Chicken-users] xosd:delete?

2005-07-22 Thread Mario Domenech Goulart
On Fri, 22 Jul 2005 21:21:33 + Mario Domenech Goulart <[EMAIL PROTECTED]> wrote: > In the xosd egg example > (http://www.call-with-current-continuation.org/eggs/xosd.html) there's a > `xosd:delete' function, but it's not provided by the egg. Shouldn't it > be `xosd:destroy'? (Just a guess --

[Chicken-users] xosd:delete?

2005-07-22 Thread Mario Domenech Goulart
Hello, In the xosd egg example (http://www.call-with-current-continuation.org/eggs/xosd.html) there's a `xosd:delete' function, but it's not provided by the egg. Shouldn't it be `xosd:destroy'? (Just a guess -- I don't know the xosd API) Best wishes, Mario _

Re: [Chicken-users] chicken-setup failure with gmp

2005-07-22 Thread Dale Jordan
Raffael Cavallaro wrote: When I try to use chicken-setup to install the gmp egg, I get the error: csc: invalid option `-H' (map (lambda (s o) (list o (list s) (lambda () (run (csc -sH -O2 - d0 ,s -L -lgmp) Change to: (map (lambda (s o) (list o (list s) (lambda () (run (csc -s -O2 -d0 -R

[Chicken-users] chicken-setup failure with gmp

2005-07-22 Thread Raffael Cavallaro
When I try to use chicken-setup to install the gmp egg, I get the error: csc: invalid option `-H' which I believe comes from this form in gmp.setup: (make/proc (map (lambda (s o) (list o (list s) (lambda () (run (csc -sH -O2 - d0 ,s -L -lgmp) sfiles ofiles) (list->vector ofiles) )

[Chicken-users] minor documentation fix

2005-07-22 Thread Daniel B. Faken
Hi, The manual entry for (define-foreign-record) should indicate that, when using the (TYPENAME FOREIGNNAME) version of NAME, the FOREIGNNAME should be quoted. I actually only figured this out by vague recollection of other FFI behaviour, since if you try to compile this (as I did at first)

[Chicken-users] signed-char* not handled correctly

2005-07-22 Thread Daniel B. Faken
Hello, I've been encountering problems using the FFI with functions that take a (signed char *). For example, with this short program: --- (define-foreign-type GLbyte signed-char) #>! typedef signed char GLbyte; int call_fn(GLbyte x, GLbyte *y); <#

[Chicken-users] static compile with eggs

2005-07-22 Thread Daishi Kato
This may be a faq, but I could not find related subjects in the mailing list archive. Is it possible to build a static excecutable that uses eggs? I'm trying with a simple example, which turned to be not working. Here is the log what I've done. 8<--8<--8<--8<--8<--8<--8<--

Re: [Chicken-users] C_alloc OK before C_invoke? (was Re: Constructing parameter lists in C)

2005-07-22 Thread Daniel B. Faken
On Fri, 22 Jul 2005, felix winkelmann wrote: > On 7/21/05, Daniel B. Faken <[EMAIL PROTECTED]> wrote: > > > > On a related note: is it OK to call C_alloc() to construct data to be > > passed via CHICKEN_invoke()? > > Yes, that should work. > > > The manual entry for C_alloc() says "..Note that

Re: [Chicken-users] Recipe for distributing C files problematic

2005-07-22 Thread John.Cowan
felix winkelmann scripsit: > The example in the manual is simply wrong. The chicken invocation should > be > > % chicken hello.scm -explicit-use -uses library -optimize-level 2 > -debug-level 0 Thanks. That makes considerably more sense. Reminder: don't forget to fix the manual before the ne

Re: [Chicken-users] C_alloc OK before C_invoke? (was Re: Constructing parameter lists in C)

2005-07-22 Thread felix winkelmann
On 7/21/05, Daniel B. Faken <[EMAIL PROTECTED]> wrote: > > On a related note: is it OK to call C_alloc() to construct data to be > passed via CHICKEN_invoke()? Yes, that should work. > The manual entry for C_alloc() says "..Note that stack-allocated data > objects have to be passed to Scheme c

Re: [Chicken-users] Problem with Syntax Case in 2.0

2005-07-22 Thread felix winkelmann
On 7/21/05, Dale Jordan <[EMAIL PROTECTED]> wrote: > I have been experimenting with the implementation of srfi-57 which uses > syntax-case and its module system. Under Chicken-1.89 I had added (at > toplevel) a procedure definition to srfi-57.scm that was used in most of > the modules. To be prec

Re: [Chicken-users] Recipe for distributing C files problematic

2005-07-22 Thread felix winkelmann
On 7/20/05, John.Cowan <[EMAIL PROTECTED]> wrote: > I'm using chicken-2.0. > > I'm having trouble distributing C files correctly using the "hello world" > example in section 3.5 of the manual. The host system is Cygwin and > the target is Solaris 8 with gcc 2.95.2. > > I compiled hello.scm with