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 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 5B617BC69 for ; Wed, 28 Mar 2007 16:44:31 +0200 (CEST) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2SEiTGu014986 for ; Wed, 28 Mar 2007 16:44:30 +0200 Received: by an-out-0708.google.com with SMTP id d26so2796315and for ; Wed, 28 Mar 2007 07:44:29 -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=aN9BynAuvwnqkJ+SLG8GoTf6BPDfxmTEbP14eOJprP9v5Sw9NVYqWpsMoO9saV+CG1j3g+hf9Oy0rxlmjbUTcsiaDs8ZFe1fXJXmu1ml9jR+nfLY08oFk8EdAa3b2NMnW1jFlc/wwY1INxvyt0527FLOK9Ocjz/lWsdvRpxsUPs= 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=mIqWWn3D6v58jvZyDSHniBmiwI2lFKQ3Swfff8itC1nsqL+hXqVO5eSNB65XJAP6ZKTGKPGtUJEwmq8xyJZ4Ln485zHchL8Uf3+UQ3eBPtUsF2ojCtQ5pJvDf77uEVIktB5m5TVFkyBFRqXoUouL/mKIKCg4ZfLz0762dnUWRLo= Received: by 10.100.124.5 with SMTP id w5mr256999anc.1175093069071; Wed, 28 Mar 2007 07:44:29 -0700 (PDT) Received: from ?192.168.1.34? ( [88.8.239.112]) by mx.google.com with ESMTP id 24sm1032270ugf.2007.03.28.07.44.27; Wed, 28 Mar 2007 07:44:28 -0700 (PDT) In-Reply-To: References: <026CA3D4-5A8B-4083-B429-DE5AEC418C0A@gmail.com> <02DBCF0E-8CC6-44CC-B59D-31533A58C32A@gmail.com> <5FF6CDCC-AE05-472F-B721-782D32302EB7@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2378477D-F40B-4A4D-B8A4-E0446FB46F7A@gmail.com> Cc: "Caml List" Content-Transfer-Encoding: 7bit From: Joel Reymont Subject: Re: [Caml-list] Producing a C wrapper with ocamlbuild or OMake Date: Wed, 28 Mar 2007 15:44:24 +0100 To: "Nicolas Pouillard" X-Mailer: Apple Mail (2.752.3) X-j-chkmail-Score: MSGID : 460A7F4D.004 on discorde : j-chkmail score : XXX : 5/20 1 0.000 -> 3 X-Miltered: at discorde with ID 460A7F4D.004 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; osx:01 gcc:01 foo:01 foo:01 usr:01 caml-list:01 undefined:01 grep:01 bin:01 data:02 data:02 caml:02 caml:02 executable:03 static:03 One last question... Two, actually. How would I add another C file to the pipeline to produce the final executable? Then, I tried using the library I built but I get an error. I have no iea what's going on, does anyone? I'm on Mac OSX if it matters. 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 Thanks, Joel -- http://wagerlabs.com/