Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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
add_dir.ml contenant

Topdirs.dir_directory "+labltk"

Ensuite tu pourra oublier -I +labltk

Bon courage

Jacek

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

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

# open Tk;;
# cgets;;
- : 'a Widget.widget -> string -> string = <fun>
#
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners