From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roger Mason Subject: Re: C++ code block not linked Date: Mon, 27 Nov 2017 07:34:58 -0330 Message-ID: References: <5A198E84.5070305@free.fr> <5A1BBFBC.2080203@free.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJHDu-0001Ql-LS for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 06:05:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJHDq-0001B3-4F for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 06:05:14 -0500 Received: from simone.ucs.mun.ca ([134.153.232.76]:50999) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJHDp-00017W-Rn for emacs-orgmode@gnu.org; Mon, 27 Nov 2017 06:05:10 -0500 In-Reply-To: <5A1BBFBC.2080203@free.fr> (Thierry Banel's message of "Mon, 27 Nov 2017 08:33:16 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Thierry Banel Cc: emacs-orgmode@gnu.org Hello Thierry, Thierry Banel writes: > You may try to mimic org-babel in a shell, and see what happens. > > cd /tmp/babel-29466ws7 > g++ -std=c++11 -I/usr/local/include C-src-29466moy.cpp -L/usr/local/lib -lginac > > (of course you need to change the random names like babel-29466ws7 by the actual ones as generated > on your system). It compiles fine: c++ -std=c++11 -I/usr/local/include -L/usr/local/lib -lginac C-src-1053hn1.cpp C-src-1053hn1.cpp:16:10: warning: 'operator=' is deprecated [-Wdeprecated-declarations] eqns = a*x+b*y==3, x-y==b; ^ /usr/local/include/ginac/container.h:199:27: note: 'operator=' declared here container_init operator=(const ex & x) attribute_deprecated; ^ C-src-1053hn1.cpp:17:10: warning: 'operator=' is deprecated [-Wdeprecated-declarations] vars = x, y; ^ /usr/local/include/ginac/container.h:199:27: note: 'operator=' declared here container_init operator=(const ex & x) attribute_deprecated; ^ 2 warnings generated. Thanks for your help Roger