From: Florian Weimer <fw@deneb.enyo.de>
To: caml-list@yquem.inria.fr
Subject: ocamlmktop mystery
Date: Fri, 18 Nov 2005 13:45:45 +0100 [thread overview]
Message-ID: <87hdaa2kg6.fsf@mid.deneb.enyo.de> (raw)
[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?
reply other threads:[~2005-11-18 12:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hdaa2kg6.fsf@mid.deneb.enyo.de \
--to=fw@deneb.enyo.de \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox