Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: -- (:)
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 -o gr1
gcc: /usr/lib/ocaml/3.08/graphics.o: No such file or directory
Error during linking

The 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 Archives:
Bug reports: FAQ:
Beginner's list: