* Re: modules and C
@ 2007-03-22 0:17 dsmich
2007-03-23 0:19 ` modules and C,C++ David Fang
0 siblings, 1 reply; 2+ messages in thread
From: dsmich @ 2007-03-22 0:17 UTC (permalink / raw)
To: David Fang; +Cc: guile-user
---- David Fang <fang@csl.cornell.edu> 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
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-23 0:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-22 0:17 modules and C dsmich
2007-03-23 0:19 ` modules and C,C++ David Fang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).