From: <dsmich@adelphia.net>
To: David Fang <fang@csl.cornell.edu>
Cc: guile-user@gnu.org
Subject: Re: modules and C
Date: Wed, 21 Mar 2007 20:17:56 -0400 [thread overview]
Message-ID: <99336.1174522676123.JavaMail.root@web30> (raw)
---- 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
next reply other threads:[~2007-03-22 0:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-22 0:17 dsmich [this message]
2007-03-23 0:19 ` modules and C,C++ David Fang
-- strict thread matches above, loose matches on Subject: below --
2007-03-23 7:01 modules and C Marco Maggi
2007-03-21 22:57 David Fang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99336.1174522676123.JavaMail.root@web30 \
--to=dsmich@adelphia.net \
--cc=fang@csl.cornell.edu \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).