From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: Charles Hymans <charles.hymans@gmail.com>
Cc: Caml_mailing list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] ocamlopt, .cmxa and "not a compilation unit description" error Options
Date: Wed, 11 Jun 2008 21:28:04 +0200 [thread overview]
Message-ID: <1213212479-sup-461@ausone.local> (raw)
In-Reply-To: <676aba050806101115p2e7ffd35hfead041ff3f4af75@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 648 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
prev parent reply other threads:[~2008-06-11 19:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 18:15 Charles Hymans
2008-06-10 19:57 ` [Caml-list] ocamlopt,.cmxa " David Allsopp
2008-06-10 20:57 ` [Caml-list] ocamlopt, .cmxa " Richard Jones
2008-06-11 19:28 ` Nicolas Pouillard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1213212479-sup-461@ausone.local \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@yquem.inria.fr \
--cc=charles.hymans@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox