On Mon, 20 Nov 2006, drehman27 wrote:
> I am using OcamlMakeFile to compile my programs.
> The program I am writing needs the Unix and BigArray.Array1 modules.
> What should I add to my MakeFile to link this libraries with my code?
Actually my first reply was about using findlib/ocamlfind, which is a good
idea anyway. But if you don't want to use it (which I don't recommend),
you must pass the name of all library files that are needed, without the
.cma/.cmxa extension and hope they can be found in a standard place. That
works well with the libs which ship with OCaml, but not third-party libs.
The line to add to the Makefile is:
LIBS = unix bigarray
Martin
--
Martin Jambon, PhD
http://martin.jambon.free.fr
.