* [Caml-list] HELP on -a options for ocamlopt
@ 2001-04-23 9:33 Franck Delaplace
2001-04-23 12:52 ` Markus Mottl
0 siblings, 1 reply; 2+ messages in thread
From: Franck Delaplace @ 2001-04-23 9:33 UTC (permalink / raw)
To: OCAML
[-- Attachment #1.1: Type: text/plain, Size: 580 bytes --]
I try to built a library which contains several modules.
ocamlopt -a -o lib t1.cmx t2.cmx t3.cmx
then I copy lib.cmxa , lib.a and test.ml in another directory
when I compile ocamlopt -o test lib.cmxa -cclib -llib test.ml
I have the following error message
** Unbound module t1
Can somebody help me to understand how to built a portable library
Thank you
--
Franck Delaplace @w3:http://www.lami.univ-evry.fr/~delapla/
Equipe BioInfo, La.M.I-U.M.R 8042 C.N.R.S
Université d'Evry Val d'Essonne
Bd François Mitterand
91025 Evry CEDEX (France)
[-- Attachment #1.2: Type: text/html, Size: 865 bytes --]
[-- Attachment #2: Card for Franck Delaplace --]
[-- Type: text/x-vcard, Size: 371 bytes --]
begin:vcard
n:Delaplace;Franck
tel;work:01 69 47 74 78
x-mozilla-html:TRUE
url:http://www.lami.univ-evry.fr/~delapla/
org:LaMI UMR 8042 CNRS;BioInfo team
version:2.1
email;internet:delapla@lami.univ-evry.fr
adr;quoted-printable:;;Universit=E9 d'Evry Val d'Essonnes=0D=0ABd Francois Mitterrand;Evry;Essonnes;91025;France
x-mozilla-cpt:;-704
fn:Delaplace Franck
end:vcard
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] HELP on -a options for ocamlopt
2001-04-23 9:33 [Caml-list] HELP on -a options for ocamlopt Franck Delaplace
@ 2001-04-23 12:52 ` Markus Mottl
0 siblings, 0 replies; 2+ messages in thread
From: Markus Mottl @ 2001-04-23 12:52 UTC (permalink / raw)
To: Franck Delaplace; +Cc: OCAML
On Mon, 23 Apr 2001, Franck Delaplace wrote:
> I try to built a library which contains several modules.
> ocamlopt -a -o lib t1.cmx t2.cmx t3.cmx
You have obviously forgotten to copy the compiled interface files (*.cmi).
They are needed in the include path (e.g. in the same dir) if you want
to access modules in the library.
You can omit them on purpose if you do not want the library user to "see"
some modules, e.g. implementations of internal stuff. But the publically
accessible ones need the compiled interface files.
Regards,
Markus Mottl
--
Markus Mottl, mottl@miss.wu-wien.ac.at, http://miss.wu-wien.ac.at/~mottl
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-23 12:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-23 9:33 [Caml-list] HELP on -a options for ocamlopt Franck Delaplace
2001-04-23 12:52 ` Markus Mottl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox