From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.0 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 62C41BC6B for ; Wed, 28 Mar 2007 17:07:44 +0200 (CEST) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2SF7hw2020012 for ; Wed, 28 Mar 2007 17:07:43 +0200 Received: by wx-out-0506.google.com with SMTP id i26so3069924wxd for ; Wed, 28 Mar 2007 08:07:42 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=TYyuhwPVJqjgwr7WjTXOiaBItujHeczj1wy8i01ogFx9xaDa90yMuMZ5bNT/by7GCszmFICafBDDB5bC5wcBwqmqpfXLYh7Wk52SY93peiir6HRu2WHyQRNC3+qdrim7MFe5MdKw78GlYZ6g887L19qhRh3jzITgHu/7F3Dnt1E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=HV9IxPiX/1qgdLDvKJ54iU18Yh3QZGRtAIeLdiGCo/oCd5Tio/0A/IEZUrdCbe/UIVYiJ6XX+xNLVEsrFk/qc+jp149PKdI8j/AXn8buCFsUAhwEyOxFwEn/xED5GEyCJ1QxgYCA2SoFqi+nrH3OFpSuh6ru6lsarRvJgQyF3Ps= Received: by 10.90.50.1 with SMTP id x1mr1016198agx.1175094462349; Wed, 28 Mar 2007 08:07:42 -0700 (PDT) Received: from ?192.168.1.34? ( [88.8.239.112]) by mx.google.com with ESMTP id g1sm26931317nfe.2007.03.28.08.07.40; Wed, 28 Mar 2007 08:07:41 -0700 (PDT) In-Reply-To: <460A826E.4000105@inria.fr> References: <20070328142550.72f2f3a6@hmmm.de> <20070328163420.241a2cfe@hmmm.de> <460A826E.4000105@inria.fr> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <60A775CE-8E0F-4185-9C96-E635D5ED9ABA@gmail.com> Cc: micha , caml-list@yquem.inria.fr Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] Wrapping OCaml function returning a variant Date: Wed, 28 Mar 2007 16:07:36 +0100 To: Xavier Leroy X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 460A84BF.000 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 460A84BF.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ffi:01 ocaml:01 gcc:01 foo:01 foo:01 usr:01 caml-list:01 undefined:01 undefined:01 grep:01 bin:01 variant:02 data:02 data:02 Big thanks to everyone for this awesome hand-holding with the FFI :-). I'm learning, albeit slowly. I have one remaining block on my road to success, apologies for reposting. I get undefined symbols when trying to produce an executable using the OCaml library with the C wrapper. gcc foo.c -L_build -lmorpher -o foo /usr/bin/ld: Undefined symbols: _caml_atom_table _caml_code_area_end _caml_code_area_start _caml_static_data_end _caml_static_data_start collect2: ld returned 1 exit status nm _build/libmorpher.a |grep caml_atom_table 00000400 C _caml_atom_table U _caml_atom_table What am I doing wrong? Thanks, Joel -- http://wagerlabs.com/