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 libcython_chicken.so
> 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 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

_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to