From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: C++ Embeded GOOPS interpreter Date: Thu, 16 Oct 2003 16:39:51 +0200 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87oewhp7pk.fsf@alice.rotty.yi.org> References: <1066304154.28107.35.camel@MARZULLO-MIS> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066315228 2043 80.91.224.253 (16 Oct 2003 14:40:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2003 14:40:28 +0000 (UTC) Cc: "Guile \(Devel\)" Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 16 16:40:26 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AA9If-0005Bu-00 for ; Thu, 16 Oct 2003 16:40:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AA9GY-0004AG-6E for guile-devel@m.gmane.org; Thu, 16 Oct 2003 10:38:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AA9GP-00049Q-Vd for guile-devel@gnu.org; Thu, 16 Oct 2003 10:38:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AA9Fs-0003zj-I9 for guile-devel@gnu.org; Thu, 16 Oct 2003 10:38:03 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.24) id 1AA9Fr-0003z9-RT for guile-devel@gnu.org; Thu, 16 Oct 2003 10:37:31 -0400 Original-Received: (qmail 31667 invoked by uid 65534); 16 Oct 2003 14:37:29 -0000 Original-Received: from chello213047125140.14.univie.teleweb.at (EHLO garibaldi) (213.47.125.140) by mail.gmx.net (mp014) with SMTP; 16 Oct 2003 16:37:29 +0200 X-Authenticated: #3102804 Original-Received: from ivanova.rhinosaur.lan ([192.168.1.9] helo=ivanova) by garibaldi with esmtp (Exim 4.24) id 1AA9I0-0001Wc-1h; Thu, 16 Oct 2003 16:39:44 +0200 Original-Received: from andy by ivanova with local (Exim 3.36 #1 (Debian)) id 1AA9I7-0004AZ-00; Thu, 16 Oct 2003 16:39:51 +0200 Original-To: Laurent Marzullo In-Reply-To: <1066304154.28107.35.camel@MARZULLO-MIS> (Laurent Marzullo's message of "Thu, 16 Oct 2003 13:35:54 +0200") User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2881 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2881 Laurent Marzullo writes: > Hello, > > I would like to write a C++ Application which will use a GOOPS > interpreter. > > The C++ application will provide a set of class that could > be used in a scheme programme. > > For example, I would like to provide: > > class MyClass > { > public: > MyClass( int p ); > void SayHello( void ); > > private: > int m_private; > }; > > (Perhaps the class above could be seen as: > (define-class () > (p #:init-value 0)) > > > and to be able to write in scheme: > > (define my_object (make #:p 5 )) > > I've take a look at SWIG to generate wrapper function etc, but > it does not use GOOPS even with -c++ option ? > Is there any doc where I could find information of how to write C++ > code to provide C++ class access in scheme ? > I've written something like this, although it depends on Guile 1.7 (CVS) (but it should be easy to get it running with 1.6) and still has quite some bugs. See http://ucxx.sourceforge.net/docs/manual/ch01s02.html#id2816562. I recommend you try the CVS version. Even if you don't really use Yehia, it's code (esp. the stuff in http://cvs.sourceforge.net/viewcvs.py/ucxx/yehia/plugins/guile/) should be useful for ypur purposes. Feel free to ask me if you need help wrt. Yehia. HTH & Regards, Andy -- Andreas Rottmann | Rotty@ICQ | 118634484@ICQ | a.rottmann@gmx.at http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc Fingerprint | DFB4 4EB4 78A4 5EEE 6219 F228 F92F CFC5 01FD 5B62 Packages should build-depend on what they should build-depend. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel