caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* gtk2 compiling problem
@ 2005-08-03 14:32 N.P.S.Sika
  2005-08-03 14:50 ` [Caml-list] " Gerd Stolpmann
  2005-08-04  7:25 ` Sylvain Pogodalla
  0 siblings, 2 replies; 3+ messages in thread
From: N.P.S.Sika @ 2005-08-03 14:32 UTC (permalink / raw)
  To: caml-list




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


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

* Re: [Caml-list] gtk2 compiling problem
  2005-08-03 14:32 gtk2 compiling problem N.P.S.Sika
@ 2005-08-03 14:50 ` Gerd Stolpmann
  2005-08-04  7:25 ` Sylvain Pogodalla
  1 sibling, 0 replies; 3+ messages in thread
From: Gerd Stolpmann @ 2005-08-03 14:50 UTC (permalink / raw)
  To: N.P.S.Sika; +Cc: caml-list

Am Mittwoch, den 03.08.2005, 15:32 +0100 schrieb
N.P.S.Sika@westminster.ac.uk:
> 
> 
> 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

For GODI use

ocamlfind ocamlc -package lablgtk2 -linkpkg -o base base.ml

The path option "-I +foo" requires a certain directory layout GODI does
not use. This ocamlfind command will work for all distributions, no
matter how directories are organised.

Gerd

> 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
> 
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
> 
-- 
------------------------------------------------------------
Gerd Stolpmann * Viktoriastr. 45 * 64293 Darmstadt * Germany 
gerd@gerd-stolpmann.de          http://www.gerd-stolpmann.de
Telefon: 06151/153855                  Telefax: 06151/997714
------------------------------------------------------------


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

* [Caml-list] gtk2 compiling problem
  2005-08-03 14:32 gtk2 compiling problem N.P.S.Sika
  2005-08-03 14:50 ` [Caml-list] " Gerd Stolpmann
@ 2005-08-04  7:25 ` Sylvain Pogodalla
  1 sibling, 0 replies; 3+ messages in thread
From: Sylvain Pogodalla @ 2005-08-04  7:25 UTC (permalink / raw)
  To: N.P.S.Sika; +Cc: caml-list

Hi,

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

You can have a look at the thread in the archive of the caml list at Google:

http://groups.google.com/group/fa.caml/browse_frm/thread/b9821015ea8ebdd2/91b5f3eb72b85d7e?lnk=st&q=ocamlc+lablgtk.cma++base.ml+group:fa.caml&rnum=1&hl=en#91b5f3eb72b85d7e

S.


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

end of thread, other threads:[~2005-08-04  7:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-03 14:32 gtk2 compiling problem N.P.S.Sika
2005-08-03 14:50 ` [Caml-list] " Gerd Stolpmann
2005-08-04  7:25 ` Sylvain Pogodalla

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).