chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Distributing compiled C files


From: felix winkelmann
Subject: Re: [Chicken-users] Distributing compiled C files
Date: Fri, 28 Dec 2007 12:46:41 +0100

On Dec 28, 2007 12:38 PM, Ivan Raikov <address@hidden> wrote:
>
>
> I am not using -R or require-extension:
>
>   csc hello.scm -debug 2 -v -I lib -DC_ENABLE_PTABLES -DHAVE_GRP_H
>   -explicit-use -t -uses library -static
>
>   /usr/bin/chicken hello.scm -output-file hello.c -feature
>   chicken-compile-static -quiet -debug 2 -include-path lib -feature
>   C_ENABLE_PTABLES -feature HAVE_GRP_H -explicit-use -uses library

(BTW, the -D... options are unnecessary)

>
>   [canonicalized]
>   (##core#callunit "library")
>   (##core#undefined)
>   (##core#undefined)
>   (##core#undefined)
>   (display '"Hello, world!")
>   ((##sys#implicit-exit-handler))
>   (##core#undefined)
>
>   cc hello.c lib/library.c lib/runtime.c -o hello -lm
>   -DC_ENABLE_PTABLES -DHAVE_GRP_H
>
>   $ ./hello
>
>   `##sys#error-hook' is not defined - the `library' unit was probably
>   not linked with this executable - execution terminated
>
>   provide       <--
>
>

This is a mystery to me.

% cat hello.scm
(display "Hello!\n")
% csc hello.scm -t -explicit-use -v -I ~/chicken/ -uses library -static
/usr/bin/chicken hello.scm -output-file hello.c -feature
chicken-compile-static -quiet -explicit-use -include-path
/Users/felix/chicken/ -uses library
% cc hello.c ~/chicken/library.c ~/chicken/runtime.c -o hello -lm
% hello
Hello!

Is your library.c up to date?


cheers,
felix




reply via email to

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