Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] newbie - running graphics applications in WinNT
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: fred@o...
Subject: [Caml-list] newbie - running graphics applications in WinNT
I'm experimenting with the "native" version of OCaml 3.02 on WinNT 4
(SP6).  I'm looking for help understanding how to run graphic

I'm able to run trivial examples from the oc.tar.gz distribution in, but I can't figure out how to run the
included "graphics programs" such as outside of

I tried building an 'ocamlgraph' per the note in oc/eng.html, but that
fails with many errors like this:

   camlprim0.obj : error LNK2001: unresolved external symbol _gr_clear_graph

Searching at I find the
suggestion to run this

	ocamlmktop -o ocamlgraph graphics.cma

That fails, reporting

	Error while linking e:/programs/ocaml/lib\graphics.cma(Graphics):
        The external function `gr_set_window_title' is not available

The "" file says that '"graph" works only under the toplevel
application'.  Does that mean I can't build an 'ocamlgraph' at all on
WinNT?  I really want to use ocaml to create some standalone graphical
applications that can run on Win32 machines; is that possible?

Or should I forget the "graphics library" and use Labltk instead, or
perhaps LablGL or LablGTK?

Fred Yankowski       tel: +1.630.879.1312
Principal Consultant       fax: +1.630.879.1370
OntoSys, Inc             38W242 Deerpath Rd, Batavia, IL 60510, USA
Bug reports:  FAQ:
To unsubscribe, mail  Archives: