caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlmktop mystery
@ 2005-11-18 12:45 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2005-11-18 12:45 UTC (permalink / raw)
  To: caml-list

[Repost from comp.lang.functional]

I can't use ocamlmktop to build a toplevel using objects in a
different directory:

$ mkdir lib
$ echo let add a b = a + b > lib/foo.ml
$ ocamlc -c lib/foo.ml
$ ocamlmktop -I lib lib/foo.cmo
$ ./a.out
        Objective Caml version 3.08.3

# Foo.add;;
Unbound value Foo.add
# 

However, changing to the directory first works as expected:

$ cd lib
$ ocamlmktop foo.cmo
$ /a.out
        Objective Caml version 3.08.3

# Foo.add;;
- : int -> int -> int = <fun>
# 

What am I doing wrong?


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

only message in thread, other threads:[~2005-11-18 12:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-18 12:45 ocamlmktop mystery Florian Weimer

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).