From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 2FA4EBBAF for ; Tue, 29 Jun 2010 12:53:03 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArkCAONtKUzLOwFok2dsb2JhbACTBYw2FQEBAQEJCQoJEQMfvmiFJASKPw X-IronPort-AV: E=Sophos;i="4.53,503,1272837600"; d="scan'208";a="65543218" Received: from outbound.icp-qv1-irony-out4.iinet.net.au ([203.59.1.104]) by mail4-smtp-sop.national.inria.fr with ESMTP; 29 Jun 2010 12:53:01 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqwFAPJsKUzLzuai/2dsb2JhbACTBYw2cb5mhSQEij8 X-IronPort-AV: E=Sophos;i="4.53,503,1272816000"; d="scan'208";a="571373171" Received: from unknown (HELO hendrix.mega-nerd.net) ([203.206.230.162]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 29 Jun 2010 18:52:54 +0800 Received: from hendrix.mnn (hendrix.mnn [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id 70FC41067DC for ; Tue, 29 Jun 2010 20:52:54 +1000 (EST) Date: Tue, 29 Jun 2010 20:52:54 +1000 From: Erik de Castro Lopo To: caml-list@inria.fr Subject: Re: [Caml-list] Calling OCaml from C - nothing shown on stdout Message-Id: <20100629205254.c0f0ee28.mle+ocaml@mega-nerd.com> In-Reply-To: <4C29CE90.60708@web.de> References: <4C29CE90.60708@web.de> Reply-To: caml-list@inria.fr Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 ocaml:01 stdout:01 cheers:01 blog:98 wrote:01 andreas:01 caml-list:01 caml:02 erik:04 erik:04 problem:05 startup:05 function:08 i'm:09 Andreas Sommer wrote: > Hi everybody, > > I'm trying to call a OCaml function from C code. I don't see a call to caml_startup() from the C code which I believe is necessary. I've blogged this exact problem (calling into Ocaml from C) here: http://www.mega-nerd.com/erikd/Blog/CodeHacking/Ocaml/calling_ocaml.html Cheers, Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/