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] creation d'un toplevel avec camltk !
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-04-19 (15:40)
From: Jacek Chrzaszcz <chrzaszcz@m...>
Subject: [Caml-list] creation d'un toplevel avec camltk !
Voici la reponse rapide:

il faut executer ton nouveau toplevel comme ca:

./mytop -I +labltk

La meuilleure mothode consiste a linker dans ton toplevel un fichier contenant

Topdirs.dir_directory "+labltk"

Ensuite tu pourra oublier -I +labltk

Bon courage


PS. Je viens de tester ca, voici le "screenshot" :

[chrzaszc@ruta test]$ cat >
Topdirs.dir_directory "+labltk"
[chrzaszc@ruta test]$ ocamlmktop -custom -o mytop -I +labltk -linkall labltk.cma
[chrzaszc@ruta test]$ ./mytop
        Objective Caml version 3.04

# open Tk;;
# cgets;;
- : 'a Widget.widget -> string -> string = <fun>
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: