[Top][All Lists]

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

Re: [Chicken-users] EOF problem

From: Peter Bex
Subject: Re: [Chicken-users] EOF problem
Date: Tue, 7 Dec 2010 21:22:42 +0100
User-agent: Mutt/

On Tue, Dec 07, 2010 at 03:15:32PM -0500, David Dreisigmeyer wrote:
> I'm getting the following error for the attached cl.scm file (OpenCL
> 1.0 on OS X 10.6):
> $ csc -s -o cl.scm -framework OpenCL -framework Accelerate
> Warning: (line 205) unterminated here-doc string literal `EOF'
> Error: (line 205) unterminated list, starting in line 19
> Error: shell command terminated with non-zero exit status 17920:
> /usr/local/bin/chicken-4.6.0 cl.scm -output-file cl.c -dynamic
> -feature chicken-compile-shared
> I was trying to follow the gl.scm (in the opengl egg) file as much as 
> possible.

Your code is correct, except that the EOF for the heredoc should be
at the start of a line, and it must be on a line all by itself.
In your code it has leading whitespace.

"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth

reply via email to

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