chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Compiling Chicken-compiled-to-C file.c does not link


From: Christian Kellermann
Subject: Re: [Chicken-users] Compiling Chicken-compiled-to-C file.c does not link
Date: Thu, 12 Jun 2014 15:24:36 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Nikos Vasilakis <address@hidden> writes:

> Hello everyone,
>
> I am trying to compile a simple scheme program down executable through
> C, with no success. My program is array1 from the Kernighan and Van
> Wyk Benchmarks, as implemented here [1]. I am using chicken 4.7 on
> ubuntu 12.04 (details: [2]) and grabbed the chicken.h header file from
> a github repo [3].
>
> In particular, `chicken array1.scm` creates array1.c, but running `gcc
> array1.c` throws a big number of "undefined reference to .." ending
> with "collect2: ld returned 1 exit status" [4].
>
> So that people help out most, my eventual goal is to compile a
> statically linked executable binary. Ideally, therefore, I would need
> to have a "chicken.c" or the chicken runtime linked in.

Maybe
http://wiki.call-cc.org/man/4/Using%20the%20compiler#distributing-compiled-c-files
helps here. Of course you would need all dependencies statically built,
i.e. the required units and extensions.

HTH,

Christian




reply via email to

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