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.8 required=5.0 tests=AWL,HTML_10_20,HTML_MESSAGE, 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 52F7CBC0B for ; Fri, 24 Nov 2006 11:07:13 +0100 (CET) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kAOA7C6Y027865 for ; Fri, 24 Nov 2006 11:07:12 +0100 Received: by py-out-1112.google.com with SMTP id a78so506848pyh for ; Fri, 24 Nov 2006 02:07:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=J0rrG01jHtDmopEZQm0gppfed3WT4KLFCoLsw2uF9jJTNtLl0xInVaUtWTYGVAtf0JDkoIvIPf2Il5M1ddsZ4VBPPXy9q7mGCNPHRPWxMInH19/2Y+YmUUxV5YAqUC6m1mTYmIATgfelPvajbzUyMELPxQ/HIKbbEC33UmE0dQA= Received: by 10.35.10.17 with SMTP id n17mr5492704pyi.1164362829823; Fri, 24 Nov 2006 02:07:09 -0800 (PST) Received: by 10.35.113.4 with HTTP; Fri, 24 Nov 2006 02:07:09 -0800 (PST) Message-ID: <6aeedf580611240207o65a6e226ycfcef887ea58529d@mail.gmail.com> Date: Fri, 24 Nov 2006 10:07:09 +0000 From: "=?ISO-8859-1?Q?D=E1rio_Abdulrehman?=" To: caml-list@yquem.inria.fr Subject: [Caml-list] using third-party libraries with OCamlMakeFile MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_68929_29548446.1164362829789" X-j-chkmail-Score: MSGID : 4566C450.001 on discorde : j-chkmail score : X : 0/20 1 X-Miltered: at discorde with ID 4566C450.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; beginner's:01 ocaml:01 toplevel:01 topfind:01 makefiles:01 ocamlfind:01 makefile:01 bigarray:01 toplevel:01 beginner's:01 ocaml:01 makefiles:01 makefile:01 bigarray:01 rio:98 ------=_Part_68929_29548446.1164362829789 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I posted the following message in the beginner's list and someone suggested I repost it here. The question is how do you use third-party libraries in your OCaml projects that you compile with OCamlMakeFile? I can load the library in question in the toplevel using: #use "topfind" #require "extlib" but I am having trouble with makefiles. Thanks. > I would like to use the DynArray module from ExtLib. >Here's what I did: >I installed godi and using godi_console installed ExtLib. >I installed godi at: /home/user/godi >When I use "ocamlfind list" I saw that extlib was available so I added >the following line to my MakeFile. >PACKS = unix bigarray extlib >I compiled my program with "make bc top" >But when I try the following in the toplevel I created, the DynArray >module is not loaded. How can I fix this? ># DynArray.create;; >Unbound value DynArray.create >Thanks. ------=_Part_68929_29548446.1164362829789 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I posted the following message in the beginner's list and someone suggested I repost it here.
The question is how do you use third-party libraries in your OCaml projects that you compile with OCamlMakeFile?

I can load the library in question in the toplevel using:
#use "topfind"
#require "extlib"

but I am having trouble with makefiles.

Thanks.

> I would like to use the DynArray module from ExtLib.

>Here's what I did:

>I installed godi and using godi_console installed ExtLib.

>I installed godi at: /home/user/godi

>When I use "ocamlfind list" I saw that extlib was available so I added
>the following line to my MakeFile.
>PACKS = unix bigarray extlib

>I compiled my program with "make bc top"
>But when I try the following in the toplevel I created, the DynArray
>module is not loaded. How can I fix this?

># DynArray.create;;
>Unbound value DynArray.create

>Thanks.
------=_Part_68929_29548446.1164362829789--