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] Wierd??? Doesn't compile under emacs edit
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-11-22 (00:48)
From: chris.danx <chris.danx@n...>
Subject: [Caml-list] Wierd??? Doesn't compile under emacs edit

Does anyone here have trouble compiling files edited in emacs?  I put 
this in a file, but it gives

File "", line 3, characters 2-15:
Unbound value GLClear.color

let init_gL =
   GlDraw.shade_model `smooth;
   GLClear.color (0.0, 0.0, 0.0);
   GLClear.depth 1.0                          ;
   GLClear.clear [`color;  `depth]            ;
   GL.enable `depth_test                      ;
   GLFunc.depth_func `lequal                  ;
   GLMisc.hint `perspective_correction `nicest

The trouble is, if I cut and paste bits from the example files with 
liblglut it works fine.

Previously I got the same error with line 2 (gldraw.shade_model ...) so 
  I copied that line from one of the examples.  It worked ok.

Do these things only happen to me?

compiled it with...


Running debian sid with tuareg 1.40.5 and gnu emacs 21.3.1

I tried opening it, editing, saving and then closing it in kedit...



To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: