English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocamlopt, .cmxa and "not a compilation unit description" error Options
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-06-11 (19:28)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] ocamlopt, .cmxa and "not a compilation unit description" error Options
Excerpts from Charles Hymans's message of Tue Jun 10 20:15:13 +0200 2008:
> 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."

In byte-code libraries can contains libraries, but not in native code.

Nicolas Pouillard aka Ertai