Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OCamlMake and cmo files
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus@o...>
Subject: Re: [Caml-list] OCamlMake and cmo files
On Thu, 27 Nov 2003, Flavio wrote:
> Now my Makefile is:
> 
> OCAMLMAKEFILE = /usr/share/ocaml-tools/OCamlMakefile
> 
> SOURCES = editor2.ml
> RESULT  = editor2
> INCDIRS = +lablgtk2
> LIBS = lablgtk
> 
> OCAMLBLDFLAGS = 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

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