You are probably missing the .cmi files. The .cma contains the bytecode, but not module signatures.
The toplevel has to see the corresponding .cmi files (#directory might help from the toplevel). Rabih -----Message d'origine----- De : [email protected] [mailto:[email protected]] Envoyé : mardi 6 octobre 2009 16:48 À : [email protected] Objet : [Caml-list] Creating an lwt toplevel Hello, I am trying to experiment with some code that uses lwt, and I would like to do it in a toplevel. Unfortunately I seem to be missing a step. Here is what I tried: # #load "unix.cma";; # #load "/Users/schmitta/godi/lib/ocaml/pkg-lib/lwt/lwt.cma";; # open Lwt;; Error: Unbound module Lwt I then tried: $ ocamlfind ocamlmktop -o lwtcaml -package lwt unix.cma lwt.cma $ ./lwtcaml Objective Caml version 3.11.1 # open Lwt;; Error: Unbound module Lwt I feel like I'm missing something obvious, but cannot see what it is right now. Thanks for any suggestion, Alan _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs ************************************************************************* This message and any attachments (the "message") are confidential, intended solely for the addressee(s), and may contain legally privileged information. Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ************ Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et susceptibles de contenir des informations couvertes par le secret professionnel. Ce message est etabli a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ************************************************************************* _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
