Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-07-04 (15:10)
From: Jean Krivine <jean_krivine@h...>
Subject: toplevel

I am trying to make a toplevel including differnent cmo
(OBJS=./dir1/obj1.cmo ./dir2/obj2.cmo ...) contained in different
(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!