[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:27:59 +0100
User-agent: Mutt/

On Sat, Jan 15, 2011 at 10:03:13AM -0500, David Dreisigmeyer wrote:
> Hi everyone:
> I can't figure out why I'm getting the following:
> $ make clean && make
> rm -rf cython_chicken.o
> gcc-4.2 -fPIC -g -c -m64 -I/usr/local/include cython_chicken.c
> gcc-4.2 -dynamiclib -o libcython_chicken.dylib cython_chicken.o -m64
> -L/usr/local/lib -lchicken -lm

I don't know why you chose to use -dynamiclib (or what it actually *does*),
but changing -dynamiclib to -shared worked for me:

gcc -fPIC -g -c -I/usr/pkg/include cython_chicken.c
gcc -lchicken -shared -lm -o cython_chicken.o 

"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]