From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Newsgroups: gmane.lisp.guile.user Subject: Re: modules and C Date: Wed, 21 Mar 2007 20:17:56 -0400 Message-ID: <99336.1174522676123.JavaMail.root@web30> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1174522731 17690 80.91.229.12 (22 Mar 2007 00:18:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Mar 2007 00:18:51 +0000 (UTC) Cc: guile-user@gnu.org To: David Fang Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Mar 22 01:18:42 2007 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HUB0q-00007c-QW for guile-user@m.gmane.org; Thu, 22 Mar 2007 01:18:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUB2Z-0004Sh-KU for guile-user@m.gmane.org; Wed, 21 Mar 2007 19:20:27 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HUB1x-0003it-TQ for guile-user@gnu.org; Wed, 21 Mar 2007 20:19:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HUB1v-0003gp-F4 for guile-user@gnu.org; Wed, 21 Mar 2007 20:19:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HUB1u-0003gE-Fh for guile-user@gnu.org; Wed, 21 Mar 2007 19:19:46 -0500 Original-Received: from mta10.adelphia.net ([68.168.78.202]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HUB0A-00051M-Id for guile-user@gnu.org; Wed, 21 Mar 2007 20:17:58 -0400 Original-Received: from web30 ([68.168.75.78]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20070322001755.KHQD2272.mta10.adelphia.net@web30>; Thu, 22 Mar 2007 00:17:55 +0000 X-Priority: 3 (Normal) Sensitivity: Normal X-detected-kernel: Solaris 8 (2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5885 Archived-At: ---- David Fang 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