From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Samuel Barreto Newsgroups: gmane.lisp.guile.user Subject: good tutorial on extending a c++ project with Guile ? Date: Mon, 26 Jun 2017 14:45:06 +0200 Message-ID: Reply-To: samuel.barreto8@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1498481148 32610 195.159.176.226 (26 Jun 2017 12:45:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Jun 2017 12:45:48 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.2.1 To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 26 14:45:40 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dPTOd-000831-L7 for guile-user@m.gmane.org; Mon, 26 Jun 2017 14:45:39 +0200 Original-Received: from localhost ([::1]:46479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPTOi-0005U1-UI for guile-user@m.gmane.org; Mon, 26 Jun 2017 08:45:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42871) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPTOI-0005Tq-OM for guile-user@gnu.org; Mon, 26 Jun 2017 08:45:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPTOE-0005Ms-Rn for guile-user@gnu.org; Mon, 26 Jun 2017 08:45:18 -0400 Original-Received: from mail-wr0-x22f.google.com ([2a00:1450:400c:c0c::22f]:33398) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPTOE-0005Jm-Lo for guile-user@gnu.org; Mon, 26 Jun 2017 08:45:14 -0400 Original-Received: by mail-wr0-x22f.google.com with SMTP id r103so144242511wrb.0 for ; Mon, 26 Jun 2017 05:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:reply-to:date:message-id:mime-version; bh=8jkvHso9o6KkoU3igQ6E1aOpT6CjSGeoib/200ubaFw=; b=mkh0p51+M8iojMi0+KunS0Cd9axcGxhNIiX5ssMFWMyytvpWN+PH79s+0ceKRurGBp FNKi7ErTxaX/Yggt+R4wOti/wy9zeS+ucyg/zJ1jqIwfSh9yptnzUFK7LY5t98H7KgwZ co04YyXDSbGXV/ZneuUATvL9SO07QK+hcpnc0I+f23fKEXnAS31A3bCMFbIvH7IDAYzV i/m/H7W2wCBaehrmyl9T6/82JdCX0XtJlFj3FtCguVRua0pcfawMzRVrVpMPtq5czr5H PCYQdg/CrVxq8l9bXgWCE/37mPRN6ETnnvxzTbj8JjBh0lt1lb7HX4kXLBWWMGP09PF0 ekzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:reply-to:date :message-id:mime-version; bh=8jkvHso9o6KkoU3igQ6E1aOpT6CjSGeoib/200ubaFw=; b=dFz1P3QD4PqbWwaOsyD/kDEK/UEhCuhAlUqSyngzHMq0noJqxlJDHvymtpkQWuz/3q OyUe9lZyuWlnCEbqp6Ds2hv4PdddrG1kdj+swL4+jbAwHWQtxteq+ckk1p6L84qjAP4W b8refTaL9Df7ft4pXvFqF4gbDIwAC/HbixdgjcD12Bv1P7byafaiuZDg32TxMcDo2zv4 gNVelamTTXP20kP6OU0ZbytS4y9OUl7cnFhta9n04TUIfIGx0aFA+i0dQiCLKK4CGV1S /HiSCn6aGCmErY88sRaEMypL2RUcH5Q0jMe0x3WIoHRUDckDKmkwTWM43sg8Bld4g2xD wtdg== X-Gm-Message-State: AKS2vOyAIrXQBS3o5fqeMChQkgG5MxKqXNFPVjo78cPhjZauymonY4tO j33VUxMYrheamPm3 X-Received: by 10.223.145.227 with SMTP id 90mr14409374wri.171.1498481110472; Mon, 26 Jun 2017 05:45:10 -0700 (PDT) Original-Received: from localhost (umr5557-mendel-sbar.univ-lyon1.fr. [134.214.32.130]) by smtp.gmail.com with ESMTPSA id 46sm10109552wrz.8.2017.06.26.05.45.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Jun 2017 05:45:10 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::22f X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.lisp.guile.user:13881 Archived-At: Hi everyone, I want to create a Guile extension to a big C++-based project called Bio++ (dedicated to bioinformatics and computational biology). However I failed to find a good and simple example on how to extend a C++ program with Guile. My idea was to create a shared library that can be called from Guile and embedded in a module. I followed instructions on the Guile reference manual but all of them are related to C, not C++. I then looked at the source code of LilyPond and OpenCog but was not able to extract signal from software idiosyncratic noise. So can anyone point me to a good example or a simple tutorial on how to extend C++ with Guile ? I think the main confusion point to me is the compilation danse between g++ and gcc. Thank you for your help ! Samuel