From: Gerd Stolpmann <info@gerd-stolpmann.de>
To: N.P.S.Sika@westminster.ac.uk
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] gtk2 compiling problem
Date: Wed, 03 Aug 2005 16:50:00 +0200 [thread overview]
Message-ID: <1123080601.12336.26.camel@localhost.localdomain> (raw)
In-Reply-To: <1123079577.42f0d599176cc@zeppo.wmin.ac.uk>
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
------------------------------------------------------------
next prev parent reply other threads:[~2005-08-03 14:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 14:32 N.P.S.Sika
2005-08-03 14:50 ` Gerd Stolpmann [this message]
2005-08-04 7:25 ` [Caml-list] " Sylvain Pogodalla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1123080601.12336.26.camel@localhost.localdomain \
--to=info@gerd-stolpmann.de \
--cc=N.P.S.Sika@westminster.ac.uk \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox