caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Graphisme
@ 1998-05-11 20:15 Patrice AUFFRET
  1998-05-13 15:22 ` Graphisme Xavier Leroy
  0 siblings, 1 reply; 2+ messages in thread
From: Patrice AUFFRET @ 1998-05-11 20:15 UTC (permalink / raw)
  To: caml-list

Bonjour,
je suis en train d'apprendre le CAML ( sous Windows ) à la FAC.
Recemment j'ai appris à compiler les programmes pour en faire un EXE
indépendant du logiciel CAML. Mais lorsque je veux faire du dessin en
programme indépendant, j'obtiens une erreur lors de l'execution du
fichier. Je fais un programme du style :

#open "graphics";;
open_graph "";;
fill_rect 200 200 50 100;;
print_newline ();;

pour obtenir un magnifique carré. Je le compile par la commande :

CAMLC -O fichier.EXE fichier.ML

La compilation se passe bien, mais lorsque j'éxecute le fichier,
j'obtiens comme message d'erreur :

Fatal error: uncaught exception.

Que dois-je faire ? S'il vous plaît, aidez moi. Merci d'avance.






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

* Re: Graphisme
  1998-05-11 20:15 Graphisme Patrice AUFFRET
@ 1998-05-13 15:22 ` Xavier Leroy
  0 siblings, 0 replies; 2+ messages in thread
From: Xavier Leroy @ 1998-05-13 15:22 UTC (permalink / raw)
  To: Patrice AUFFRET, caml-list

Bonjour,

> je suis en train d'apprendre le CAML ( sous Windows ) à la FAC.
> Recemment j'ai appris à compiler les programmes pour en faire un EXE
> indépendant du logiciel CAML. Mais lorsque je veux faire du dessin en
> programme indépendant, j'obtiens une erreur lors de l'execution du
> fichier.

En effet, les fonctions du module Graphics ne fonctionnent qu'à
l'intérieur de l'application interactive Caml.  Les programmes
indépendants ne fonctionnent qu'en mode texte, et les fonctions du
module graphics lèvent une exception dans ce cas.

- Xavier Leroy





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

end of thread, other threads:[~1998-05-17 16:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-05-11 20:15 Graphisme Patrice AUFFRET
1998-05-13 15:22 ` Graphisme Xavier Leroy

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).