From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: babel with c++ [8.2.10 (8.2.10-29-g89a0ac-elpa] Date: Fri, 16 Jan 2015 22:21:57 +0100 Message-ID: <87y4p2s9oq.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCEKB-0001JZ-3z for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 16:21:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCEK6-0003cU-SG for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 16:20:59 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:55248) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCEK6-0003cH-LG for emacs-orgmode@gnu.org; Fri, 16 Jan 2015 16:20:54 -0500 In-Reply-To: (seth andrews's message of "Tue, 13 Jan 2015 17:16:16 -0700") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: seth andrews Cc: emacs-orgmode@gnu.org Hello, seth andrews writes: > C++ (or c code for that matter) that needs to link to any libraries will > not compile with babel. In the function org-babel-C-execute, the file name > is given last, making it impossible to pass compiler flags that will effect > linking. A simple fix is to switch the order of the last two arguments to > format. Thank you for the report. Could you send a patch with a test for it in test-ob-C.el? Regards, -- Nicolas Goaziou