Hello everyone,

I cannot understand the way to use #+name and #+call with babel.

All the mixes on headers I tried have been failures.
I just want something like :

* Hello Word in C++
Here is the source code :
#+call: cpp_hello_world [:exports code]
and here is the result :
#+call: cpp_hello_world [:results output :exports results]

gives me

* Hello Word in C++
Here is the source code :
#include <iostream>

int main()
{
std::cout << "hello world !" << std::endl;
}

and here is the result :
Hello World !

in the resulting HTML, ascii or Latex export.

Here is my example source : http://pastebin.com/63uHDvZH

Does anyone see why I cannot have the output of the code and the results in the last sections ?

Thanks :)

--
Benoît BAYOL
benoit.ba...@gmail.com
0033 6 3353 1153


Reply via email to