[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] Building C Libraries with chicken
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] Building C Libraries with chicken |
Date: |
Wed, 1 Sep 2010 21:32:15 +0200 |
2010/9/1 Christian Kellermann <address@hidden>:
> [...]
> I see! Is there anything I need to call to cleanup the runtime
> system again? I am asking all this because I want to hide even
> that from the user of this library. So I would wrap the CHICKEN_run(!)
> into an init() function of some sort and have the user call that
> instead. I could provide a cleanup() function as well, if that's
> needed.
> [...]
Hello,
it has already been mentioned that cleanup is not necessary. But
actually it should even be possible to avoid having to call an
initialization routine manually by declaring a library constructor
instead.
I'm attaching example code for a library implemented in Scheme and a
client implemented in C that works at least under Linux and Win32
using GCC and requires no library setup from the client side at all.
Ciao,
Thomas
--
When C++ is your hammer, every problem looks like your thumb.
cfoo.tar.bz2
Description: BZip2 compressed data