Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Ocamlmakefile and Lablgtk
[ 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] Ocamlmakefile and Lablgtk
On Mon, 12 Nov 2001, Johann Spies wrote:
>  --------------------------------------------------------
>  OCAMLMAKEFILE=/usr/share/ocaml-tools/OcamlMakefile
>  RESULT=calc
>  LIBS=lablgtk gtkInit
>  INCDIRS=+lablgtk
>  OCAMLFLAGS=-labels
>  include $(OCAMLMAKEFILE)
>  ----------------------------------------------------------
> How do I inform the compiler through Ocamlmakefile to use options
> gtkInit.cmx as in 

I assume the problem is that you haven't specified where to find
libraries. Note that INCDIRS is only for interface files (.cmi), whereas
LIBDIRS is necessary if there are libraries in the directory against
which you want to link. Therefore, add this line:


Hope that helps!

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
Bug reports:  FAQ:
To unsubscribe, mail  Archives: