<?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/11/541d390c3dc1718e433c58c401e2269f"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T18:49:19"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)"
  prev="2003/11/ba89246da253ab0440a0660c65e37a49"
  next="2003/11/d7056e171bf4ebf8c6db37acb85893a8"
  next-in-thread="2003/11/0439c656b2aeef77b7c5949be7a9b56d"
  prev-thread="2003/11/2657135bcecea23ebab1a637490ae98e"
  next-thread="2003/11/04de2adad170aa7cd1c0961e4ed73162"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/541d390c3dc1718e433c58c401e2269f"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T18:49:19"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/0439c656b2aeef77b7c5949be7a9b56d"
  from="Jun.Furuse@i..."
  author="Jun.Furuse@i..."
  date="2003-11-24T20:46:21"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/98f4e5ad6d2d610665f49b28f351ad5e"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-24T23:02:37"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
<msg 
  url="2003/11/342efbf5beea4a93915156e485701317"
  from="Jun.Furuse@i..."
  author="Jun.Furuse@i..."
  date="2003-11-25T10:42:12"
  subject="Re: [Caml-list] Building camlimages programs on deb (and linux)">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
Gurr, David (MED, self) wrote:
&gt; Unix linkers can be very "helpful".  Forgive me if you
&gt; already know this but the link order is important. 

No I didn't know what, thanks.


&gt; The dependant lib comes before the lib that it depends on.
&gt; And if you have circular dependencies you will need to
&gt; link a lib multiple times.  So:
&gt; 
&gt;&gt;ocamlc `camlimages-config` -cclib "-L/usr/X11R6/lib 
&gt;&gt; -lxvthumb -lXpm -lX11 -lpng -lfreetype -lz -ljpeg -lgif" 
&gt;&gt;monochrome.ml

Just tried that... :(

I updated my system, if there is a bug in Xpm it hasn't been fixed (some 
how I doubt it's a bug - it's more likely me doing something daft).

Interestingly if I take the program off it still complains...

ocamlc `camlimages-config` -cclib "-L/usr/X11R6/lib -lxvthumb -lXpm 
-lX11 -lpng -lfreetype -lz -ljpeg -lgif"

So I guess that it comes from linking with the ocaml files specified in 
camlimages-config with the libraries...

-I /usr/lib/ocaml/3.07/camlimages ci_core.cma ci_gif.cma ci_jpeg.cma 
ci_tiff.cma ci_bmp.cma ci_ppm.cma ci_png.cma ci_ps.cma ci_xpm.cma


If i leave ci_xpm.cma off, it links.  I don't know if it's safe to leave 
it off.  I suppose if I don't use XPM it'll be ok, but it's not the 
greatest solution.



Chris

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

