chicken-users
[Top][All Lists]
Advanced

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

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


From: felix winkelmann
Subject: Re: [Chicken-users] Recipe for distributing C files problematic
Date: Fri, 22 Jul 2005 14:34:07 +0200

On 7/20/05, John.Cowan <address@hidden> 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 the specified options to "chicken" and then
> transported "hello.c", "library.c", "runtime.c", and "chicken.h" as
> specified to the Solaris host and compiled successfully.
> 
> However, specifying "-explicit-use -uses hello.c" when running "chicken"
> bought me a linker error saying that C_hello_c_toplevel was undefined.
> Omitting these options told me instead that C_eval_toplevel and
> C_extras_toplevel were undefined.

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

Sorry about that. My head bows in shame.

(Alternatively, remove the "-explicit-use" and add extras.c and eval.c to the
Makefile).


cheers,
felix




reply via email to

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