From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA11709; Thu, 27 Nov 2003 23:14:47 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA12177 for ; Thu, 27 Nov 2003 23:14:46 +0100 (MET) Received: from mail.jumpy.it (outgoing1.jumpy.it [213.215.144.9]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hARMEj116260 for ; Thu, 27 Nov 2003 23:14:45 +0100 (MET) Received: from h213-213-16-206.rm1.albacom.net (213.213.16.206) by mail.jumpy.it (6.5.028) id 3FBAAF5E000DD6D5 for caml-list@inria.fr; Thu, 27 Nov 2003 23:14:45 +0100 From: Flavio Reply-To: sixdegreesoit@yahoo.it To: caml-list@inria.fr Subject: Re: [Caml-list] OCamlMake and cmo files Date: Thu, 27 Nov 2003 23:13:08 +0100 User-Agent: KMail/1.5.2 References: <200311271033.00088.sixdegreesoit@yahoo.it> <20031127121417.GA27092@fichte.ai.univie.ac.at> In-Reply-To: <20031127121417.GA27092@fichte.ai.univie.ac.at> X-Face: u^]j#BwYih?Y?./tfgaC)}_\5qv|Z,Sm/$E4zx0IM\AWf*T(r3P3X1K,a8:q)|mP;cDVnMy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamlmake:01 flags:01 usr:01 ocaml-tools:01 incdirs:01 lablgtk:01 libs:01 lablgtk:01 gtkinit:01 ocamlc:01 gtkinit:01 ocamlc:01 cmo:01 cmo:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Alle 13:14, gioved=EC 27 novembre 2003, Markus Mottl ha scritto: > 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. Now my Makefile is: OCAMLMAKEFILE =3D /usr/share/ocaml-tools/OCamlMakefile SOURCES =3D editor2.ml RESULT =3D editor2 INCDIRS =3D +lablgtk2 LIBS =3D lablgtk OCAMLBLDFLAGS =3D gtkInit.cmo but this executes ocamlc -I +lablgtk2 gtkInit.cmo lablgtk.cma -o editor2 editor2.cmo that gives an error because the right order is (lablgtk.cma first): ocamlc -I +lablgtk2 lablgtk.cma gtkInit.cmo -o editor2 editor2.cmo And now? Many thanks for your help (and patience) > Regards, > Markus Mottl ------------------- 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