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 OAA26831; Wed, 27 Nov 2002 14:01:04 +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 OAA26739 for ; Wed, 27 Nov 2002 14:01:03 +0100 (MET) Received: from inria.fr (macaque.inria.fr [128.93.8.158]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gARD12X29678; Wed, 27 Nov 2002 14:01:02 +0100 (MET) Date: Wed, 27 Nov 2002 14:02:24 +0100 Subject: Re: [Caml-list] Error compiling classes with ocamlcp? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Mime-Version: 1.0 (Apple Message framework v548) Cc: caml-list@inria.fr To: =?ISO-8859-1?Q?Gr=E9goire_Sutre?= From: Damien Doligez In-Reply-To: <20021126192549.F40547E76@iona.labri.fr> Message-Id: <791D4B6A-0208-11D7-8024-0003930FCE12@inria.fr> Content-Transfer-Encoding: quoted-printable X-Mailer: Apple Mail (2.548) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tuesday, Nov 26, 2002, at 20:25 Europe/Paris, Gr=E9goire Sutre wrote: > class my_class =3D > object > method do_nothing =3D () > end > > The command "ocamlcp -c ocamlcp-pb.ml" gives: [...] > This generated file indeed doesn't compile with ocamlc. I am using=20 > the OCaml > distribution version 3.06. Doesn't ocamlcp support objects? There are two problems here: 1. A known bug (PR#1464) fixed in the working version. Mail me if you want a specific patch. 2. You called your file "ocamlcp-pb.ml", which is incorrect. O'Caml=20 uses the capitalized file name as the module name for this file, thus all O'Caml source file names must be alphanumeric and start with a=20 lowercase letter. Otherwise, you will run into problems sooner or later. -- Damien ------------------- 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