List Info

Thread: "ocaml_beginners"::[] ocamlbuild and external libraries




"ocaml_beginners"::[] ocamlbuild and external libraries
country flaguser name
United States
2007-06-06 06:07:14

Hello,

I am trying to work with ocamlbuild and having a lot of trouble
getting (what seems to me to be) my simple scenario to work.
Everything works fine if I use use "ocamlopt", but then it takes a
very long time [no incremental compilation].

What I have are two directories, tools and src. The tools directory
contains various binary library archives (i.e., .cmxa), and the src
directory has .ml files. The tools directory also has ".cmi" files
for the modules that are found in the various archives, for the most
part.

When I try the following:

cd src ; ocamlbuild -I ../tools main.native

I get back an error that "Utility.split_sep" is unbound. The Utility
module is contained in a file mg.cmxa archives in the tools
directory; there is also a file, ../tools/utility.cmi, which I think
I found to be necessary for ocamlopt to be happy.

Well, I thought perhaps I neglected a lib, so I tried all of the
following:

cd src ; ocamlbuild -I ../tools -lib mg main.native
cd src ; ocamlbuild -I ../tools -lib mg.cmxa main.native
cd src ; ocamlbuild -I ../tools -lib mg.library main.native
cd src ; ocamlbuild -I ../tools -lib ../tools/mg.cmxa main.native

No dice. The same error occurs every time. Any idea what I *should*
be doing?

thanks in advance,
Niko

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )