List Info

Thread: "ocaml_beginners"::[] Building a custom toplevel with ocamlfind




"ocaml_beginners"::[] Building a custom toplevel with ocamlfind
country flaguser name
United States
2007-02-28 09:49:53

Folks,

I'm trying to build a custom toplevel that includes OUnit. I have
ounit.cma and ounit.cmi in the OUnit installation directory. I do

ocamlbuild -clean
ocamlbuild test.byte

This builds a bunch of stuff in the build directory, including
test_parser.cmo

ocamlfind ocamlmktop -package ounit -linkpkg -o test.top

I then try to load my parser tests into the new toplevel and get the
following error

# #load "test_parser.cmo";;
The files test_parser.cmo and ./mytop disagree over interface Parser

If I just try to use test_parser.ml I get the following

# #use "test_parser.ml";;
File "test_parser.ml", line 1, characters 0-10:
Unbound module OUnit

Any clues?

Thanks, Joel

--
http://wagerlabs.com/

__._,_.___
.

__,_._,___
[1]

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