chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] FFI and shared libraries


From: felix winkelmann
Subject: Re: [Chicken-users] FFI and shared libraries
Date: Mon, 3 Jan 2005 11:32:37 +0100

On Mon, 3 Jan 2005 09:34:32 +0000, Joel Reymont <address@hidden> wrote:
> 
> I'm using these rules in my make file:
> 
> %.o: %.scm
>         $(CHICKEN_CC) -e -c $<
> 
> %.o: %.cpp
>         $(CHICKEN_CC) -c -e $<
> 
> %.so: $(OBJ) chango.scm
>         $(CHICKEN_LD) -s -o $@ $^
> 
> chango.scm has a whole bunch of load-library statements and I then
> require chango in my Scheme which loads chango.so. All the .o files are
> units and I can (declare (use... )) them but only if they don't use FFI.

What exactly do you mean with "if they don't use FFI"?

> If I do then csi tries to load their scm file when I require chango.
> 
> I can just do with load-library, is that correct? Will that execute the
> unit's toplevel?

Yes, load-library will execute the toplevel.


cheers,
felix




reply via email to

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