emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Cannot use #+call correctly with babel


From: Benoit Bayol
Subject: [O] Cannot use #+call correctly with babel
Date: Sat, 16 Jun 2012 18:31:53 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20120428 Thunderbird/12.0.1

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
address@hidden
0033 6 3353 1153




reply via email to

[Prev in Thread] Current Thread [Next in Thread]