<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/129e434e9f65be9f23d03cd3e04f32ac"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-22T00:48:20"
  subject="[Caml-list] Wierd???  Doesn&apos;t compile under emacs edit"
  prev="2003/11/002147abdef4f6fe5248093cd8c75a75"
  next="2003/11/8735a2fea9467afd546bac476fdcf022"
  next-in-thread="2003/11/6bf8a87b5380533fca9209333f36a9c2"
  prev-thread="2003/11/f0e367dbb26509392a63add6d275b970"
  next-thread="2003/11/51df69e6560d82f4c9692ae57b6a0125"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] Wierd???  Doesn&apos;t compile under emacs edit">
<msg 
  url="2003/11/129e434e9f65be9f23d03cd3e04f32ac"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-22T00:48:20"
  subject="[Caml-list] Wierd???  Doesn&apos;t compile under emacs edit">
<msg 
  url="2003/11/6bf8a87b5380533fca9209333f36a9c2"
  from="art yerkes &lt;ayerkes@s...&gt;"
  author="art yerkes"
  date="2003-11-22T08:05:32"
  subject="Re: [Caml-list] Wierd???  Doesn&apos;t compile under emacs edit">
<msg 
  url="2003/11/7735ce1a7b47a13e6b240b569b06e5f7"
  from="chris.danx &lt;chris.danx@n...&gt;"
  author="chris.danx"
  date="2003-11-22T13:54:08"
  subject="Re: [Caml-list] Wierd???  Doesn&apos;t compile under emacs edit">
</msg>
</msg>
</msg>
</thread>

<contents>
Hi,

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

File "nehe_two.ml", 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...

lablglut nehe_two.ml


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


:(

Chris

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

</contents>

</message>

