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] Standalone toplevel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Vincenzo Ciancia <ciancia@c...>
Subject: [Caml-list] Standalone toplevel

 Hi all,

  I am developing a project wich uses threads, lablgl and lablglut.
  Sometimes I need to code on another machine, where I can't install
  glut-devel and in general don't have lablgl and lablglut.

  Is it possible to create a custom toplevel wich is both statically
  linked and stand-alone? I mean that it should run my .ml files without
  looking for other ocaml files on the system. I've tried with this

   ocamlmktop -thread -custom -o a.out -cclib -static -I \
  /usr/lib/ocaml/3.06/lablgl -I /usr/lib/ocaml/3.06/lablglut unix.cma \
  threads.cma lablgl.cma lablglut.cma  -cclib -lXi

  but it complains about not finding Pervasives.cmi, and anyway I would
  have to take all lablgl and lablglut mli's with it. Is there a way to
  have just the toplevel around? It would be also nice to be able to be
  able to distribute such a beast with a compiled-in library.

  Thanks for attention


 PS: I can't write to the list using my ordinary SMTP, wich is, maybe it's been blacklisted for some reason?

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: