caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] creation d'un toplevel avec camltk !
@ 2002-04-17 18:56 Laurent.MAGDELAINE
  2002-04-18 23:24 ` Jacques Garrigue
  2002-04-19 10:25 ` Jacek Chrzaszcz
  0 siblings, 2 replies; 3+ messages in thread
From: Laurent.MAGDELAINE @ 2002-04-17 18:56 UTC (permalink / raw)
  To: caml-list

J'utilise beaucoup la recompilation de toplevels personalisés,
mais de nombreux points restent encore trés obscures pour moi.

Je recherche le moyen de créer une boucle d'interraction avec labltk et
pourquoi pas
aussi avec de support des threads.

Si j'utilise les directives suivantes :
#directory "+labltk";;
#load "labltk.cma";;
et que j'ouvre un module comme par exemple :
open Tk;;
avec la boucle d'interraction standard "ocaml", tout se passe bien.

Par contre, quand je recompile un toplevel :
ocamlmktop -custom -o mytop -I +labltk -linkall labltk.cma
et que je tente d'ouvrir le meme module :
open Tk;;
j'obtient :
Unbound module Tk

Je m'y prend certainement trés mal, mais je pense que je ne doit pas
étre le seul à avoir des difficultées avec la recompilation des
toplevels.

Si quelqu'un peut m'aider, merci par avance :-)
-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] creation d'un toplevel avec camltk !
  2002-04-17 18:56 [Caml-list] creation d'un toplevel avec camltk ! Laurent.MAGDELAINE
@ 2002-04-18 23:24 ` Jacques Garrigue
  2002-04-19 10:25 ` Jacek Chrzaszcz
  1 sibling, 0 replies; 3+ messages in thread
From: Jacques Garrigue @ 2002-04-18 23:24 UTC (permalink / raw)
  To: laurent.magdelaine; +Cc: caml-list

From: "Laurent.MAGDELAINE" <laurent.magdelaine@wanadoo.fr>

> Par contre, quand je recompile un toplevel :
> ocamlmktop -custom -o mytop -I +labltk -linkall labltk.cma
> et que je tente d'ouvrir le meme module :
> open Tk;;
> j'obtient :
> Unbound module Tk

Contrairement a` ce que dit le code source, les toplevels crees avec
ocamlmktop ne semblent pas memoriser le path de leur creation.
Essayez  mytop -I +labltk.
Remarque: pour labltk le toplevel est deja` installe' sous le nom
labltk.

Autre remarque: labltk ne marche pas bien avec les threads. Essayez
plutot lablgtk.

        Jacques Garrigue
-------------------
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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Caml-list] creation d'un toplevel avec camltk !
  2002-04-17 18:56 [Caml-list] creation d'un toplevel avec camltk ! Laurent.MAGDELAINE
  2002-04-18 23:24 ` Jacques Garrigue
@ 2002-04-19 10:25 ` Jacek Chrzaszcz
  1 sibling, 0 replies; 3+ messages in thread
From: Jacek Chrzaszcz @ 2002-04-19 10:25 UTC (permalink / raw)
  To: Laurent.MAGDELAINE; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-19 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 18:56 [Caml-list] creation d'un toplevel avec camltk ! Laurent.MAGDELAINE
2002-04-18 23:24 ` Jacques Garrigue
2002-04-19 10:25 ` Jacek Chrzaszcz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).