Hi,

I'd like to generate a library from a file that uses the nums library
(in a way such that the final user of my library does not have to
specify that nums is necessary).

I was able to generate a .cma with the following command:
ocamlc -a nums.cma file.ml -o lib.cma

However to generate a .cmxa, the command:
ocamlopt -a nums.cmxa file.ml -o lib.cmxa

fails and reports the error that "nums.cmxa is not a compilation unit
description."

I can always do:
ocamlopt -a file.ml -o lib.cmxa

But the user of my library will have to necessarily specify nums.cmxa
when compiling his project.
Is there a way to go around this? (for instance, by putting the option
nums.cmxa into the library?)

Thank you.
_______________________________________________
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

Reply via email to