<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2002/12/6c4eece1712f484db5656825c42e2d7c"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2002-12-04T23:40:19"
  subject="Re: [Caml-list] library"
  prev="2002/12/347197c8c7b625cd247ec88ce99f6e14"
  next="2002/12/8ecbdbbcd0e7f87f5f122c3513558f8f"
  prev-in-thread="2002/12/347197c8c7b625cd247ec88ce99f6e14"
  prev-thread="2002/12/2460a60612b172a3906a98662afed12a"
  next-thread="2002/12/5cc160bf0af1aae0fd1bc747f2aaee7c"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] library">
<msg 
  url="2002/12/347197c8c7b625cd247ec88ce99f6e14"
  from="altavillasalvatore@libero.it &lt;altavillasalvatore@l...&gt;"
  author="altavillasalvatore@libero.it"
  date="2002-12-04T19:38:35"
  subject="[Caml-list] library">
<msg 
  url="2002/12/6c4eece1712f484db5656825c42e2d7c"
  from="Jacques Garrigue &lt;garrigue@k...&gt;"
  author="Jacques Garrigue"
  date="2002-12-04T23:40:19"
  subject="Re: [Caml-list] library">
</msg>
</msg>
</thread>

<contents>
&gt; my program (babbage.ml) use str and unix library.
&gt; I would want to link both in my program.
&gt; 
&gt; This command  allows me to link one library(unix or str)
&gt; 
&gt; ocamlc -o babbage -custom unix.cma babbage.ml -cclib -lunix 
&gt; 
&gt; but i would want to link str and unix library together.

What incredibly old version of ocaml are you using?
Nowadays you can simply write
         ocaml -o babbage unix.cma babbage.ml
and the linker takes care of including the needed stub libraries,
creating a custom executable if needed, or using dlls if available.
Add only -custom if you want to force the creation of a self-contained
executable (not depending on ocamlrun and dlls).

If you need two libraries then it is just
         ocaml -o babbage unix.cma str.cma babbage.ml

Cheers,

Jacques Garrigue
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

