Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] using third-party libraries with OCamlMakeFile
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Dário_Abdulrehman <drehman31@g...>
Subject: [Caml-list] using third-party libraries with OCamlMakeFile
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.