[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] Units as shared libraries (SWING, dynamic, does not

From: Joel Reymont
Subject: Re: [Chicken-users] Units as shared libraries (SWING, dynamic, does not work)
Date: Mon, 13 Dec 2004 09:11:38 +0000

> felix winkelmann wrote:

>Actually `load-library' should work here, provided the code has
>been compiled like a normal shared library
>% cat yo.scm
>(declare (unit yo))
>(print "yo!")
>% csc yo.scm -vc
>/usr/local/bin/chicken yo.scm -output-file yo.c -quiet
>gcc yo.c -o yo.o -g -c -DC_NO_PIC_NO_DLL
>rm yo.c
>% gcc yo.o `chicken-config --libs --cflags` -shared -o
>% csi
>; loading /usr/local/lib/chicken/ ...
>; loading library posix ...
>; loading library srfi-1 ...
>#;1> (load-library 'yo "./")
>; loading library yo ...

This is sort of a non-issue now as John Lenz added a -nounit option to
SWIG to generate wrapper code without the unit declaration. Thank you for
the workaround, Felix!


OpenPoker: The Linux of poker software
Tenerife: Canary Islands: Spain

reply via email to

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