From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id BAA22265; Sat, 22 Nov 2003 01:48:20 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id BAA22006 for ; Sat, 22 Nov 2003 01:48:19 +0100 (MET) Received: from mta06-svc.ntlworld.com (mta06-svc.ntlworld.com [62.253.162.46]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hAM0mF122424 for ; Sat, 22 Nov 2003 01:48:16 +0100 (MET) Received: from ntlworld.com ([80.4.69.150]) by mta06-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20031122004813.MJFU13354.mta06-svc.ntlworld.com@ntlworld.com> for ; Sat, 22 Nov 2003 00:48:13 +0000 Message-ID: <3FBEB39A.5020604@ntlworld.com> Date: Sat, 22 Nov 2003 00:53:46 +0000 From: "chris.danx" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031014 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Caml Mailing List Subject: [Caml-list] Wierd??? Doesn't compile under emacs edit Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Loop: caml-list@inria.fr X-Spam: no; 0.00; ntlworld:99 nehe:01 gldraw:01 model:01 0.0,:01 0.0,:01 0.0:01 gldraw:01 model:01 lablglut:01 nehe:01 tuareg:01 func:01 chris:01 chris:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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