[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-users] Problem with define-embedded/foreign-declare

From: Daniel B. Faken
Subject: [Chicken-users] Problem with define-embedded/foreign-declare
Date: Mon, 10 May 2004 16:15:39 -0400 (EDT)

Hi all,

  I tried the example of define-embedded from the manual, and got this, 
with chicken-1.43 (on redhat 7.3):

login:/data/netfinity/faken%cat > bar.scm
(include "chicken-entry-points")

(define-embedded (foo (int x) (c-string y)) int
  (print x ": " y) 

(define-embedded (square (double x)) unsigned-int
  (* x x))
login:/data/netfinity/faken%chicken bar.scm
compiling `bar.scm' ...
Error: suspicious code fragment in `foreign-declare' form:

 int   foo(int  x, char *  y) {
unbalanced parentheses (`}')

  Anyone have a quick fix?

Daniel F

reply via email to

[Prev in Thread] Current Thread [Next in Thread]