From: Jeff Shaw <shawjef3@msu.edu>
To: caml-list@inria.fr
Subject: three different labltk behaviors
Date: Sat, 04 Aug 2007 19:56:42 -0400 [thread overview]
Message-ID: <46B5123A.9020702@msu.edu> (raw)
Ocaml community,
For fun I wrote a version of Life for ocaml +labltk.
http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
Here are the 3 ways I've tried to run it and the results:
1. compile to bytecode or native:
"Fatal error: exception Protocol.TkError("Tcl/Tk not initialised")"
2. #load all the libraries into the toplevel (or give them as command
line arguments) then #use "lifemain.ml":
works
3. Run the toplevel with "lifemain.ml" as an argument:
gives an empty Tk window
The results are the same on Mac OS X and Windows XP (mingw).
Here's the toplevel command:
ocaml -I +labltk -I +threads unix.cma labltk.cma threads.cma
tkthread.cmo life.cma lifeui.cma lifemain.ml
or leave off "lifemain.ml" and do a #use "lifemain.ml".
to compile:
ocamlc -I +labltk -I +threads -o life unix.cma labltk.cma threads.cma
tkthread.cmo life.cma lifeui.cma lifemain.ml
The sources are at
http://www.msu.edu/~shawjef3/life/life.ml
http://www.msu.edu/~shawjef3/life/lifeui.ml
http://www.msu.edu/~shawjef3/life/lifemain.ml
Any ideas about how to get a bytecode or native compiled version working?
Thanks,
Jeff
next reply other threads:[~2007-08-04 23:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-04 23:56 Jeff Shaw [this message]
2007-08-05 2:28 ` [Caml-list] " Eric Cooper
2007-08-05 10:28 ` Jacques Garrigue
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=46B5123A.9020702@msu.edu \
--to=shawjef3@msu.edu \
--cc=caml-list@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