<?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="2005/05/d756c60086dad92de4bcd0a7bf604a8c"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2005-05-24T07:11:36"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs"
  prev="2005/05/9911874e1ae1601791833b3fe0df85a6"
  next="2005/05/bb1d6a20d4bdcadd2adf0833b4aafc0f"
  prev-in-thread="2005/05/9911874e1ae1601791833b3fe0df85a6"
  next-in-thread="2005/06/c3ffc54913b55d70b279663a47aa1f00"
  prev-thread="2005/05/6bc8288e79ab9a5dc858b7fdb70117d6"
  next-thread="2005/05/9286991d81ae52bf3d33cf5e71230358"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="ocamlopt and *using* DLLs">
<msg 
  url="2005/05/a36fd4aef9cd201c1ad33f6b4cda255d"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-24T03:53:20"
  subject="ocamlopt and *using* DLLs">
<msg 
  url="2005/05/ea5f2ee9392f6d3c9e16ec04a76fbddb"
  from="Jacques Garrigue &lt;garrigue@m...&gt;"
  author="Jacques Garrigue"
  date="2005-05-24T04:30:04"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/9911874e1ae1601791833b3fe0df85a6"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-24T06:38:18"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/d756c60086dad92de4bcd0a7bf604a8c"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2005-05-24T07:11:36"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/06/c3ffc54913b55d70b279663a47aa1f00"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-06-01T20:30:47"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/06/3d049d9b338577fabcc04dfc9dcbab83"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-06-02T04:23:05"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
<msg 
  url="2005/05/ff17d1c954de2ba853ef42e9992815d1"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-27T01:49:01"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
</msg>
<msg 
  url="2005/05/87c5fe0e8212d87896c17081bc2d5289"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-27T02:11:55"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/a90835e46a619e0296c0fb6edda3bd99"
  from="Anatoly Zaretsky &lt;anatoly.zaretsky@g...&gt;"
  author="Anatoly Zaretsky"
  date="2005-05-27T08:17:53"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/0a214c2eefcf26ec113049096f0a4572"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2005-05-28T07:10:48"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
</msg>
</msg>
<msg 
  url="2005/05/fc38fd9a87d630b7d9df42b16cfbaec0"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2005-05-24T05:07:06"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
<msg 
  url="2005/05/f7e5de978308cd1ac2f2aaed1788e34f"
  from="Robert Roessler &lt;roessler@r...&gt;"
  author="Robert Roessler"
  date="2005-05-27T01:48:37"
  subject="Re: [Caml-list] ocamlopt and *using* DLLs">
</msg>
</msg>
</msg>
</thread>

<contents>
&gt; Put a different way, ml_scintilla.dll definitely has a dependence on
&gt; ocamlrun.dll - which logical need would not go away even if I
&gt; repackaged the DLL as a static lib.

Actually the symbols are only imported from ocamlrun.dll if you compile-with
or define the CAML_DLL preprocessor variable.
If you don't have CAML_DLL defined, symbols will be resolved at linking
time, and will then be found in your executable.
So it's possible to have a staticly linked library in both bytecode
(with -custom) and nativecode.

You can have a look at the OCaml Win32 API library Makefile that have
different ways of building and linking it
(http://ocaml-win32.sourceforge.net/).

Nicolas

</contents>

</message>

