* toplevel
@ 2008-07-04 15:10 Jean Krivine
2008-07-04 15:22 ` [Caml-list] toplevel Alain Frisch
0 siblings, 1 reply; 2+ messages in thread
From: Jean Krivine @ 2008-07-04 15:10 UTC (permalink / raw)
To: caml-list
Hello
I am trying to make a toplevel including differnent cmo
(OBJS=./dir1/obj1.cmo ./dir2/obj2.cmo ...) contained in different
directories
(OCAMLINCLUDES= -I ./dir1 -I ./dir2 ...).
If I type make toplevel (see excerpt of my makefile below) I obtain a
toplevel that does what I want (I can load all my modules from it).
But when I try to make a toplevel (by doing make toplx) using
ocamlmktop, the toplevel I obtain doesn't know my modules...
Can anyone help me?
toplevel: $(MLI) $(CMI) $(OBJS)
ocaml $(OCAMLINCLUDES) unix.cma nums.cma $(OBJS)
toplx: $(MLI) $(CMI) $(OBJS)
ocamlmktop -o toplx $(OCAMLINCLUDES) -cclib -lunix -cclib -lnums
unix.cma nums.cma $(OBJS)
Thanks you!
J
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] toplevel
2008-07-04 15:10 toplevel Jean Krivine
@ 2008-07-04 15:22 ` Alain Frisch
0 siblings, 0 replies; 2+ messages in thread
From: Alain Frisch @ 2008-07-04 15:22 UTC (permalink / raw)
To: Jean Krivine; +Cc: caml-list
Jean Krivine wrote:
> Hello
>
> I am trying to make a toplevel including differnent cmo
> (OBJS=./dir1/obj1.cmo ./dir2/obj2.cmo ...) contained in different
> directories
> (OCAMLINCLUDES= -I ./dir1 -I ./dir2 ...).
> If I type make toplevel (see excerpt of my makefile below) I obtain a
> toplevel that does what I want (I can load all my modules from it).
> But when I try to make a toplevel (by doing make toplx) using
> ocamlmktop, the toplevel I obtain doesn't know my modules...
> Can anyone help me?
Your modules are probably linked in the toplevel but you must still pass
the -I flags to the toplevel to make the .cmi files visible. I believe
the only way to embed some builtin -I flags in a toplevel is to link in
a module that talks to the toplevel.
-- Alain
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-04 15:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-04 15:10 toplevel Jean Krivine
2008-07-04 15:22 ` [Caml-list] toplevel Alain Frisch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox