<?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/13322a1c9558dc8213aabf326278ba2d"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2003-11-27T23:01:59"
  subject="Re: [Caml-list] OCamlMake and cmo files"
  prev="2003/11/df4ec3a8bbc73ae035a50ba302eb703c"
  next="2003/11/544ed91316b7f021748820400d5659b0"
  prev-in-thread="2003/11/df4ec3a8bbc73ae035a50ba302eb703c"
  prev-thread="2003/11/bdc1a5a58c194efb90903c9adcd7b097"
  next-thread="2003/11/544ed91316b7f021748820400d5659b0"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] OCamlMake and cmo files">
<msg 
  url="2003/11/81d0d1f0a5637b0bbc5c1e42e41daa94"
  from="Flavio &lt;sixdegreesoit@y...&gt;"
  author="Flavio"
  date="2003-11-27T09:34:27"
  subject="[Caml-list] OCamlMake and cmo files">
<msg 
  url="2003/11/19b8bcf7d9fc197e8195fe26dd26a27f"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2003-11-27T12:14:20"
  subject="Re: [Caml-list] OCamlMake and cmo files">
<msg 
  url="2003/11/df4ec3a8bbc73ae035a50ba302eb703c"
  from="Flavio &lt;sixdegreesoit@y...&gt;"
  author="Flavio"
  date="2003-11-27T22:14:47"
  subject="Re: [Caml-list] OCamlMake and cmo files">
<msg 
  url="2003/11/13322a1c9558dc8213aabf326278ba2d"
  from="Markus Mottl &lt;markus@o...&gt;"
  author="Markus Mottl"
  date="2003-11-27T23:01:59"
  subject="Re: [Caml-list] OCamlMake and cmo files">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
On Thu, 27 Nov 2003, Flavio wrote:
&gt; Now my Makefile is:
&gt; 
&gt; OCAMLMAKEFILE = /usr/share/ocaml-tools/OCamlMakefile
&gt; 
&gt; SOURCES = editor2.ml
&gt; RESULT  = editor2
&gt; INCDIRS = +lablgtk2
&gt; LIBS = lablgtk
&gt; 
&gt; OCAMLBLDFLAGS = gtkInit.cmo
&gt; 
&gt; but this executes
&gt; ocamlc -I +lablgtk2 gtkInit.cmo lablgtk.cma -o editor2 editor2.cmo
&gt; 
&gt; that gives an error because the right order is (lablgtk.cma first):
&gt; ocamlc -I +lablgtk2 lablgtk.cma gtkInit.cmo -o editor2 editor2.cmo

Well, that's easy ;-)

How about

  OCAMLBLDFLAGS = lablgtk.cma gktInit.cmo

and dropping "LIBS = lablgtk"?

Regards,
Markus Mottl

--
Markus Mottl          http://www.oefai.at/~markus          markus@oefai.at

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

