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