Le Mon, 19 Mar 2012 15:40:40 -0300, Andre Nathan <an...@digirati.com.br> a écrit :
> $ ./ospec.byte > Fatal error: exception Symtable.Error("Printexc") > > Can anyone give me a hand here? It is because ospec has not be linked with the Printexc module. Since you define a library "ospec" and you use it for the executable "ospec", it will be linked against "ospec.cma", and not all the .cmo as you did before. OCaml remove unused units from ".cma" files passed on the command line when linking, it only keeps units reachable from ".cmo" files. Printexc has been removed because it was not used. To prevent this behavior you must pass the "-linkall" switch (note that you should always use it when you use dynlink). Cheers, -- Jérémie -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs