[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Cannot set header-args :includes with multiple includes [8.
Re: [O] Bug: Cannot set header-args :includes with multiple includes [8.2.7 (8.2.7-4-g880362-elpa <at> /home/will/.emacs.d/elpa/org-20140616/)]
Wed, 03 Sep 2014 08:35:17 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
Yes Will, there is a bug.
I will look at it.
In the meantime, as a workaround, you may move includes from header to body:
using namespace std;
cout << "world";
Thanks for reporting
Le 03/09/2014 01:06, Will Everett a écrit :
> Will Everett <will <at> spings.net> writes:
>> I believe the :includes header argument is incorrectly parsing lists of
> includes for c++. This snippet:
>> #+BEGIN_SRC C++ :includes <cstdio> <iostream>
>> using namespace std;
>> printf("Hello ");
>> cout << "world";
>> produces a compiler error:
>> warning: extra tokens at end of #include directive
>> #include <cstdio> <iostream>
>> 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.