From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Hans_=C3=85berg?= Newsgroups: gmane.lisp.guile.user Subject: Re: C++ Foreign Function Interface Date: Fri, 11 Mar 2016 23:40:55 +0100 Message-ID: <42BB375A-66DE-4517-A2C4-4550867C4425@telia.com> References: <87a8m6nqm4.fsf@gmail.com> <87vb4s4vma.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1457736081 15254 80.91.229.3 (11 Mar 2016 22:41:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Mar 2016 22:41:21 +0000 (UTC) Cc: guile-user@gnu.org To: Arun Isaac Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Mar 11 23:41:12 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aeVk8-0006y1-65 for guile-user@m.gmane.org; Fri, 11 Mar 2016 23:41:12 +0100 Original-Received: from localhost ([::1]:58058 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeVk7-0007SH-Mw for guile-user@m.gmane.org; Fri, 11 Mar 2016 17:41:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56793) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeVjy-0007Rq-SU for guile-user@gnu.org; Fri, 11 Mar 2016 17:41:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeVju-0001fy-PV for guile-user@gnu.org; Fri, 11 Mar 2016 17:41:02 -0500 Original-Received: from v-smtpout3.han.skanova.net ([81.236.60.156]:50883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeVju-0001fs-Ir for guile-user@gnu.org; Fri, 11 Mar 2016 17:40:58 -0500 Original-Received: from [10.0.1.4] ([217.208.169.99]) by cmsmtp with SMTP id eVjsaRVrocCUkeVjsaSs3R; Fri, 11 Mar 2016 23:40:56 +0100 In-Reply-To: <87vb4s4vma.fsf@gmail.com> X-Mailer: Apple Mail (2.3124) X-CMAE-Envelope: MS4wfL1AkDR2DiNHGmPQww/wuZn85XQfFtt6rLkwqX4G/KQzcicmZRK5J/ZOB838A+XRnABU6MBa6ixIOLHMHS4XspV9BfYIc/f/+lwm+E668zGMMjV2oJP6 uXcVGpQ/459GTGU3yysVMjN4I1u3nAFogAzS+lYmyf8rIiBgp5AF8xUD27TQsK0HfLqtgtbvJWJUYAiZphNd3mXaTh3xhKSfaZU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 81.236.60.156 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12472 Archived-At: > On 11 Mar 2016, at 21:17, Arun Isaac = wrote: >=20 > Hans =C3=85berg writes: >=20 >> You will have to write it yourself. It has been discussed before on >> this list [1]. >=20 > In one of the messages in the earlier thread, I found a link to > https://isocpp.org/wiki/faq/mixing-c-and-cpp >=20 > That page gives me some idea of how I can write C wrappers for my C++ > library. When calling C++ from C, you can=E2=80=99t pass a C++ exception through = the C code. So in my example code, there are conversions between C++ and = Guile exceptions.