From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 66E95BBC4 for ; Tue, 31 Jan 2006 13:03:22 +0100 (CET) Received: from mxintern.schlund.de (mxintern.kundenserver.de [212.227.126.204]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k0VC3M9k031335 for ; Tue, 31 Jan 2006 13:03:22 +0100 Received: from [172.17.36.11] (helo=schluck.use.schlund.de) by mxintern.kundenserver.de with esmtp (Exim 4.34) id 1F3uED-0000kz-MH for caml-list@yquem.inria.fr; Tue, 31 Jan 2006 13:03:21 +0100 From: Michael Wohlwend To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] callbacks from C to Caml Date: Tue, 31 Jan 2006 13:03:22 +0100 User-Agent: KMail/1.9.1 References: <200601311209.13125.fmonnier@linux-nantes.fr.eu.org> <200601311212.56000.micha-1@fantasymail.de> <200601311247.15960.fmonnier@linux-nantes.fr.eu.org> In-Reply-To: <200601311247.15960.fmonnier@linux-nantes.fr.eu.org> X-Face: S)[vu%Bha1d&ej9GfwAq~7C}A,y[B.uS}+D6'hb~xPwsxymw$fnCOaMe<=?utf-8?q?*bnUajSBR=5Fm=3FR=0A=09?=@V3;iX8[A}z`.%pEQ1r7iZhN8#ktTCBQ}&mkx>=RH&l|l6\]NZI@ MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200601311303.23017.micha-1@fantasymail.de> X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Miltered: at concorde with ID 43DF520A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 argv:01 segfault:01 printf:01 callbacks:01 wrote:01 int:01 int:01 newline:02 caml:02 caml:02 output:02 flush:03 startup:05 indeed:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO,SPF_FAIL autolearn=disabled version=3.0.3 On Tuesday 31 January 2006 12:47, Florent Monnier wrote: > > > int main(void) > > > { > > > =A0 =A0 call_caml_f(2); > > > =A0 =A0 call_caml_f(5); > > > > > > =A0 =A0 return 0; > > > } > > > > isn't there a caml_startup(argv) missing? > > Yes indeed! > > Now there is no segfault anymore, but > nothing happens! > > print_int should print something, but there is nothing at all!?.. > What could be wrong? Maybe there is some "flushing" missing? (allthough print_newline should flu= sh=20 the output...) I used printf with "%!" at the end of the formatstring (for flushing) which= =20 worked. Michael