<?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="2003/07/41588f0a856ed60dea78d2ba462c1b71"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-07-18T14:00:23"
  subject="Re: [Caml-list] ocamlmklib on Windows"
  prev="2003/07/eff3f424206ab79c6f72fa50d6d55585"
  next="2003/07/b93db64b14888fdde019645a6516da78"
  prev-in-thread="2003/07/e9c6124bdfecdfc3581bcce8c957f2ca"
  next-in-thread="2003/07/b93db64b14888fdde019645a6516da78"
  prev-thread="2003/07/78071d0102ff4a36a938e2d2c7ee895b"
  next-thread="2003/07/997f00f2e1af843a0ab59c0e0a1a80a0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] ocamlmklib on Windows">
<msg 
  url="2003/07/c32767f41b4444441894ba0b93d99b0d"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-07-16T15:07:07"
  subject="[Caml-list] ocamlmklib on Windows">
<msg 
  url="2003/07/e9c6124bdfecdfc3581bcce8c957f2ca"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-07-17T20:38:33"
  subject="Re: [Caml-list] ocamlmklib on Windows">
<msg 
  url="2003/07/41588f0a856ed60dea78d2ba462c1b71"
  from="Richard Jones &lt;rich@a...&gt;"
  author="Richard Jones"
  date="2003-07-18T14:00:23"
  subject="Re: [Caml-list] ocamlmklib on Windows">
<msg 
  url="2003/07/b93db64b14888fdde019645a6516da78"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-07-18T14:12:52"
  subject="Re: [Caml-list] ocamlmklib on Windows">
</msg>
</msg>
</msg>
<msg 
  url="2003/07/5b954f0ad6ffb46e7cf0d979c7c3abed"
  from="Dmitry Bely &lt;dbely@m...&gt;"
  author="Dmitry Bely"
  date="2003-07-18T15:27:38"
  subject="Re: [Caml-list] ocamlmklib on Windows">
<msg 
  url="2003/07/c32365fec5b601a5a4639c859d9eea0f"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-07-18T16:21:08"
  subject="Re: [Caml-list] ocamlmklib on Windows">
<msg 
  url="2003/07/bb087313d422b62eae936fa879274d06"
  from="Jerome Simeon &lt;simeon@r...&gt;"
  author="Jerome Simeon"
  date="2003-07-18T22:39:38"
  subject="Re: [Caml-list] ocamlmklib on Windows">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Thu, Jul 17, 2003 at 10:37:55PM +0200, Xavier Leroy wrote:
&gt; There's a mismatch between the ocamlmklib approach and Windows DLLs
&gt; that has prevented me so far from making the former work with the
&gt; latter.
&gt; 
&gt; Basically, ocamlmklib assumes that, from the *same* set of object C
&gt; files, one can build both
&gt; - a static library that can be statically linked with the Caml runtime system
&gt;   and the application, and
&gt; - a shared library (DLL) that can be dynamically linked with the Caml
&gt;   runtime system and the application.

This is surely similar to the need for compiling C object files with
-fPIC/-fpic under Linux if they are to become DLLs. Of course you
/can/ compile without this flag, but as I understand it, if you do so
you get shared libraries which aren't shared very effectively.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj
Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you.
 All new technology is irrelevant until it is taken up by the public.

-------------------
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>

