guile-user
[Top][All Lists]
Advanced

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

Re: modules and C


From: dsmich
Subject: Re: modules and C
Date: Wed, 21 Mar 2007 20:17:56 -0400

---- David Fang <address@hidden> wrote: 
> Hi,
>       I'm having a bit of trouble using a symbol I defined in C from a
> module:

 ....
> What do I need to do to export my scm_c_define_gsubr'd
> functions to the module?  Must I wrap them into another module in C, and
> use-module it?  (Would I expect the same problem with mixing
> load-extensions with modules?)
> 
> I've been reading the manuals and info on the module's sections and didn't
> find a satisfactory answer.  (Is this a 'quirk?')  What basic concept(s)
> am I missing here?  Thanks in advance!

You will want to read about scm_c_export() and scm_c_call_with_current_module 
in 
http://www.gnu.org/software/guile/manual/html_node/Dynamic-Linking-and-Compiled-Code-Modules.html
and 
http://www.gnu.org/software/guile/manual/html_node/Accessing-Modules-from-C.html

-Dale





reply via email to

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