<?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/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"
  prev="2003/11/81d0d1f0a5637b0bbc5c1e42e41daa94"
  next="2003/11/df4ec3a8bbc73ae035a50ba302eb703c"
  prev-in-thread="2003/11/81d0d1f0a5637b0bbc5c1e42e41daa94"
  next-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; and the error is 
&gt; ocamlc  -I +lablgtk2 lablgtk.cma gtkInit.cma -o editor editor.cmo
&gt; Cannot find file gtkInit.cma
&gt; 
&gt; Right, the file is gtkInit.cmo but if i add the extension to the 
&gt; filename it tells: Cannot find file gtkInit.cmo.cma

There is a good reason why this is handled this way: the extension
differs for byte- and native code libraries.

If you want to link anything that is only available in byte code (or
pass special flags to the byte code linker), just use the variable
OCAMLBLDFLAGS (see README in the distribution for details). Everything
you put in there will be passed verbatim in the linking stage.

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>

