* [Caml-list] JPB/Problème avec la librairie Graphics
@ 2001-05-15 17:17 Jean-Pierre Bernède
2001-05-17 9:33 ` Luc MAZARDO
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Pierre Bernède @ 2001-05-15 17:17 UTC (permalink / raw)
To: INRIA - Ocaml tribune
[-- Attachment #1: Type: text/plain, Size: 571 bytes --]
Bonjour,
sous Windows 98, en Ocaml 3.01 avec la séquence de compilation :
ocamlc -o essai essai.ml
et le fichier essai.ml contenant les expressions suivantes :
open Graphics;;
draw_rect 10 20 50 50;;
je ne parviens pas à créer un exécutable
comportant la librairie Graphics ; le compilateur retourne le message :
Error while linking c:\outils\ocaml\essai\essai.cmo : The external function 'gr_draw_rect' is not available.
(les fichiers essai.cmi et essai.cmo sont cependant créés.)
Merci de m'apporter vos lumières.
Jean-Pierre Bernède.
[-- Attachment #2: Type: text/html, Size: 1649 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] JPB/Problème avec la librairie Graphics
2001-05-15 17:17 [Caml-list] JPB/Problème avec la librairie Graphics Jean-Pierre Bernède
@ 2001-05-17 9:33 ` Luc MAZARDO
0 siblings, 0 replies; 2+ messages in thread
From: Luc MAZARDO @ 2001-05-17 9:33 UTC (permalink / raw)
To: Jean-Pierre Bernède; +Cc: INRIA - Ocaml tribune
ocamlc -o essai graphics.cma essai.ml
marchera mieux...
mais il faut tout d'abord initialiser le contexte graphique
par l'utilisation de la fonction :
val open_graph: string -> unit
take a look at :
http://www.ocaml.org/Examples/
you'll have some examples using graphics (hanoi,...)
--
Luc Mazardo
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-17 9:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-15 17:17 [Caml-list] JPB/Problème avec la librairie Graphics Jean-Pierre Bernède
2001-05-17 9:33 ` Luc MAZARDO
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox