[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicke
From: |
David Dreisigmeyer |
Subject: |
Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0) |
Date: |
Sat, 15 Jan 2011 11:49:42 -0500 |
Hi Peter, that didn't work.
On Sat, Jan 15, 2011 at 11:33 AM, Peter Bex <address@hidden> wrote:
> On Sat, Jan 15, 2011 at 05:27:59PM +0100, Peter Bex wrote:
>> I don't know why you chose to use -dynamiclib (or what it actually *does*),
>> but changing -dynamiclib to -shared worked for me:
>
> Ah, dynamiclib is an OS X-specific thing. I didn't initially
> see you were on OS X, sorry about that. Perhaps the order in which
> the commandline args are posted is important. We've seen this
> before, on Linux or OpenBSD I believe; try doing it like I did below,
> adding the -lchicken *before* your object files:
>
>> gcc -fPIC -g -c -I/usr/pkg/include cython_chicken.c
>> gcc -lchicken -shared -lm -o libcython_chicken.so cython_chicken.o
>> -L/usr/pkg/lib
>
> Cheers,
> Peter
> --
> http://sjamaan.ath.cx
> --
> "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
>
Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0), Felix, 2011/01/16