From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benoit Bayol Subject: Cannot use #+call correctly with babel Date: Sat, 16 Jun 2012 18:31:53 +0200 Message-ID: <4FDCB4F9.80404@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sfvur-0006SB-M1 for emacs-orgmode@gnu.org; Sat, 16 Jun 2012 12:32:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sfvup-0002yl-UW for emacs-orgmode@gnu.org; Sat, 16 Jun 2012 12:32:01 -0400 Received: from mail-ee0-f41.google.com ([74.125.83.41]:41881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sfvup-0002yD-LB for emacs-orgmode@gnu.org; Sat, 16 Jun 2012 12:31:59 -0400 Received: by eekb47 with SMTP id b47so1308679eek.0 for ; Sat, 16 Jun 2012 09:31:56 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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 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.bayol@gmail.com 0033 6 3353 1153