[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: Peter Bex
Subject: Re: [Chicken-users] Undefined symbols: _C_toplevel (OS X 10.6.6 / Chicken 4.6.0)
Date: Sat, 15 Jan 2011 17:33:13 +0100
User-agent: Mutt/

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 cython_chicken.o 
> -L/usr/pkg/lib

"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

reply via email to

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