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=0.0 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 5D7E8BB84 for ; Mon, 28 Jul 2008 19:34:25 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AooCAG+fjUiAKgEfiGdsb2JhbACLF4c2AQEBDyCbdA X-IronPort-AV: E=Sophos;i="4.31,266,1215381600"; d="scan'208";a="15584690" Received: from mail.cs.rice.edu ([128.42.1.31]) by mail1-smtp-roc.national.inria.fr with ESMTP; 28 Jul 2008 19:34:24 +0200 Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id 8021B2C2D0F for ; Mon, 28 Jul 2008 12:34:23 -0500 (CDT) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id QDhYdsFC6hZC for ; Mon, 28 Jul 2008 12:34:22 -0500 (CDT) Received: from [10.121.20.231] (unknown [10.121.20.231]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id D46EF2C2D3F for ; Mon, 28 Jul 2008 12:34:22 -0500 (CDT) Message-ID: <488E0319.4060005@rice.edu> Date: Mon, 28 Jul 2008 12:34:17 -0500 From: Raj Bandyopadhyay User-Agent: Thunderbird 2.0.0.14 (X11/20080502) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Array copying in OCaml References: <4888AE76.2030204@rice.edu> <666572260807241246m4ef1c4aclc6078db154d68c7a@mail.gmail.com> In-Reply-To: <666572260807241246m4ef1c4aclc6078db154d68c7a@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; ocaml:01 cvs:01 compiler:01 stdlib:01 ocamlc:01 ocaml':01 compiler:01 ocaml:01 caml-list:01 boot:01 cma:01 caml:02 declaration:02 linking:02 external:03 Thanks Richard! I added my C code to array.c (in the development version which I got from CVS), and added an external declaration in array.ml. However, I now get the following compiler error: File "_none_", line 1, characters 0-1: Error: Error while linking boot/stdlib.cma(Array): The external function `caml_general_array_sub' is not available make[1]: *** [ocamlc] Error 2 make[1]: Leaving directory `/home/rajb/research/software/sources/ocaml' make: *** [world] Error 2 Obviously this is because of incompatibility in the 'boot' version vs the current version of the compiler. How do I get around this? I have never worked on the OCaml compiler before, so I am definitely missing something. Thanks Raj