caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* GTK
@ 2005-07-19 15:26 N.P.S.Sika
  2005-07-19 15:40 ` [Caml-list] GTK SooHyoung Oh
  2005-07-20  6:21 ` Jean-Christophe Filliatre
  0 siblings, 2 replies; 3+ messages in thread
From: N.P.S.Sika @ 2005-07-19 15:26 UTC (permalink / raw)
  To: caml-list



Hello there,

I try to compile my first GTK+2 code "base.ml" taken from the GTK Ocaml tutorial
from

-------------
(* file: base.ml *)

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

let _ = main ()
-------------------
You can compile the above program with ocamlc using:

ocamlc -I +lablgtk2 -o base lablgtk.cma gtkInit.cmo base.ml


HOWEVER when I do that i get the following error message

File "base.ml", line 4, characters 15-29:
Unbound value GWindow.window

anyone got any idea what it is ?
thanks


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-20  6:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-19 15:26 GTK N.P.S.Sika
2005-07-19 15:40 ` [Caml-list] GTK SooHyoung Oh
2005-07-20  6:21 ` Jean-Christophe Filliatre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).