From: "Charles Hymans" <charles.hymans@gmail.com>
To: caml-list@yquem.inria.fr
Subject: ocamlopt, .cmxa and "not a compilation unit description" error Options
Date: Tue, 10 Jun 2008 20:15:13 +0200 [thread overview]
Message-ID: <676aba050806101115p2e7ffd35hfead041ff3f4af75@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 978 bytes --]
next reply other threads:[~2008-06-10 18:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 18:15 Charles Hymans [this message]
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
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=676aba050806101115p2e7ffd35hfead041ff3f4af75@mail.gmail.com \
--to=charles.hymans@gmail.com \
--cc=caml-list@yquem.inria.fr \
/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