[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Distributing compiled C files
From: |
Ivan Raikov |
Subject: |
Re: [Chicken-users] Distributing compiled C files |
Date: |
Fri, 28 Dec 2007 20:38:17 +0900 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
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
[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 <--
"felix winkelmann" <address@hidden> writes:
>
> "provide" is provided by the eval unit, which is not linked in. I wonder
> where it comes from, you don't use "require-extension" or "-R"?
>
> Can you compile the file with "-debug 2" ?
>
>
> cheers,
> felix
>