Le 26/08/2014 18:24, Will Everett a écrit : > > > 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 > > Here is a patch to fix the issue. The :includes, :defines, :imports headers have been extended to accept multiple items without parenthesis. All the following forms are now allowed: :includes :includes "strings.h" :includes '( ) :includes (mapcar (lambda (x) (concat "")) '("abc" "def" "ghi")) (same for :imports) :defines AA 22 BB 33 :defines "AA 22 BB 33" :defines '("abc 123" "def 456") :defines (mapcar (lambda (x) (concat x " " x "_def")) '("A" "BB" "CCC")) This works either in the header as here: #+BEGIN_SRC C++ :includes "strings.h" #+END_SRC or in a property drawer, like that: :PROPERTIES: :includes: "strings.h" :END: Have fun Thierry