Version française
Home     About     Download     Resources     Contact us    
Browse thread
gtk2 compiling problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: N.P.S.Sika@w...
Subject: gtk2 compiling problem



Hi everybody ,

I had this problem addressed before but myself, I had to be off any computer for
some time so I am back with the same problem.

I am having trouble with compiling any gtk2 code  taken out of a tutorial of
Tony Gale and Ian Main adapted to Ocaml by SooHyoung Oh
---------------------

(* file: base.ml *)

let main () =
  let window = GWindow.window () in
  window#show ();
  GMain.Main.main ()

let _ = main ()
----------------------

it says that to compile i should do
ocamlc -I +lablgtk2 -o base lablgtk.cma gtkInit.cmo base.ml

but this is the error message i got

-----------
fishs-Computer:~/FYP/gtk fish$ ocamlc -I +lablgtk2 -o base lablgtk.cma gtkInit.
cmo base.ml
File "base.ml", line 4, characters 15-29:
Unbound value GWindow.window
-------------
if it is of any help i have installed

gtk2 libraries via Fink
lablgtk2 via Godi

need help here guies. my final year project depends on it.
thanks