caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] using third-party libraries with OCamlMakeFile
@ 2006-11-24 10:07 Dário Abdulrehman
  0 siblings, 0 replies; only message in thread
From: Dário Abdulrehman @ 2006-11-24 10:07 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

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.

[-- Attachment #2: Type: text/html, Size: 1076 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-11-24 10:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-24 10:07 [Caml-list] using third-party libraries with OCamlMakeFile Dário Abdulrehman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).