[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] evaluate cpp snippet in org babel with default includes and cust
Re: [O] evaluate cpp snippet in org babel with default includes and customized entry point
Sat, 16 Sep 2017 10:54:50 +0200
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
You may use the :includes header parameter.
Also, you may omit the main() function. In this case, all your code will
become the body of a default main function. Type C-c C-v v on the
following example to understand what is happening.
#+BEGIN_SRC C++ :includes <iostream>
On 16/09/2017 10:37, Amos Bird wrote:
But I'd like to hide all those includes and the main function. I'm not
sure if it's possible.
Re: [O] evaluate cpp snippet in org babel with default includes and customized entry point, Thierry Banel, 2017/09/16