English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Problem with ocamlopt
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-20 (19:28)
From: Tyler Eaves <tylere@g...>
Subject: [Caml-list] Problem with ocamlopt
Hi, I'm just learning O'Caml.

The system I'm using is an x86 machine running debian unstable. I'm
having a problem with the native compiler (ocamlopt).

For instance:

tyler@phoenix:~$ ocamlopt graphics.cmx gr1.ml -o gr1
gcc: /usr/lib/ocaml/3.08/graphics.o: No such file or directory
Error during linking

The gr1.ml file consists of:

open Graphics;;

open_graph " 640x480";;
for i = 12 downto 1 do
  let radius = i * 20 in
  set_color (if (i mod 2) = 0 then red else yellow);
  fill_circle 320 240 radius

This seems to occur with any library used. Any ideas on how to resolve
this? I've already got every debian ocaml package that I can find
installed, so I don't think that's the issue.

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