From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Everett Subject: Re: Bug: Cannot set header-args :includes with multiple includes [8.2.7 (8.2.7-4-g880362-elpa /home/will/.emacs.d/elpa/org-20140616/)] Date: Tue, 2 Sep 2014 23:06:44 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53630) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOxDG-0003hQ-Hy for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 19:10:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOxDB-0008Nr-SD for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 19:10:10 -0400 Received: from plane.gmane.org ([80.91.229.3]:56605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOxDB-0008LI-Lo for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 19:10:05 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOxDA-00051D-H7 for emacs-orgmode@gnu.org; Wed, 03 Sep 2014 01:10:04 +0200 Received: from 66.55.134.198.choopa.com ([66.55.134.198.choopa.com]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 01:10:04 +0200 Received: from will by 66.55.134.198.choopa.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 01:10:04 +0200 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: emacs-orgmode@gnu.org Will Everett spings.net> writes: > I believe the :includes header argument is incorrectly parsing lists of includes for c++. This snippet: > > #+BEGIN_SRC C++ :includes > using namespace std; > printf("Hello "); > cout << "world"; > #+END_SRC > > produces a compiler error: > > warning: extra tokens at end of #include directive >  #include > > Then, of course printf and cout are undeclared. It looks like the include is just throwing all the includes onto one line when they should be broken up and each put on their own line. Sorry to be a pest, but did anyone see this? Does no one else try to use org-babel for LP with C/C++?