Oops, I need to read the manual more carefully. #load_rec works. Thanks! On Fri, Apr 29, 2016 at 3:54 AM, Gabriel Scherer wrote: > Note that since 4.03, the OCaml toplevel comes with a "#help" > directive that makes it easy to discover the available directives > and their meaning. > > Utop, even on earlier OCaml versions, additionally provides an > #utop_help command that describes utop-specific features (key > bindings, macros). > > On Fri, Apr 29, 2016 at 6:28 AM, Jeremie Dimino > wrote: > > If all dependencies are in the search path, you should be able to use > > `#load_rec`, which does exactly this > > > > On Fri, Apr 29, 2016 at 5:57 AM, Junsong Li > wrote: > >> > >> Hi list, > >> > >> I am wondering why we can't make #load to load everything needed > >> automatically, given object files already in the search path. > >> > >> FYI, currently, it only shows the error (t opens B and uses B.x) > >> > >> utop # #load "t.cmo";; > >> Error: Reference to undefined global `B' > > > > > > > > > > -- > > Jeremie >