[gambit-list] OS X 10.6 "Building Loadable Library" example

David Dreisigmeyer dwdreisigmeyer at gmail.com
Wed Dec 29 14:35:23 EST 2010


Hi,

I've been trying the "Building Loadable Library" m1/m2/m3 example (pg
16 of pdf manual).  I'm getting the following error:

$ gcc -bundle m1.o m2.o m3.o foo.o1.o -o foo.o1
-L/opt/local/lib/gambit-c -lgambc -I/opt/local/include
ld: duplicate symbol ____G_cons in
/opt/local/lib/gambit-c/libgambc.a(_gambc.o) and foo.o1.o
collect2: ld returned 1 exit status

Also, after this works, can I do something like the following:

$gsi
> (load "foo.o1")
> (map twice '(5))

Thanks,

-Dave



More information about the Gambit-list mailing list