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: Johann Spies <jspies@s...>
Subject: [Caml-list] Ocamlmakefile and Lablgtk
 am trying to figure out how to use Ocamlmakefile to compile
 lablgtk programs.

 With the following Makefile:

 LIBS=lablgtk gtkInit

 I get :
 make[1]: Entering directory `/tmp'
 ocamlc  -I +lablgtk        lablgtk.cma gtkInit.cma     -o calc \
Cannot find file gtkInit.cma
make[1]: *** [calc] Error 2
make[1]: Leaving directory `/tmp'
make: *** [byte-code] Error 2

js-19:07:59-/tmp$make nc
make[1]: Entering directory `/tmp'
ocamlopt   -I +lablgtk
lablgtk.cmxa gtkInit.cmxa     -o calc \
Cannot find file gtkInit.cmxa
make[1]: *** [calc] Error 2
make[1]: Leaving directory `/tmp'
make: *** [native-code]
Error 2
How do I inform the compiler through Ocamlmakefile to use options
gtkInit.cmx as in 

ocamlopt -I +lablgtk -labels -o testgtk.opt lablgtk.cmxa gtkInit.cmx ?

Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "He that loveth father of mother more than me is not 
      worthy of me; and he that loveth son or daughter more 
      than me is not worthy of me. And he that taketh not 
      his cross, and followeth after me, is not worthy of 
      me."                   Matthew 10:37,38 
Bug reports:  FAQ:
To unsubscribe, mail  Archives: