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] Error compiling classes with ocamlcp?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <damien.doligez@i...>
Subject: Re: [Caml-list] Error compiling classes with ocamlcp?
On Tuesday, Nov 26, 2002, at 20:25 Europe/Paris, Grégoire Sutre wrote:

> class my_class =
> object
>   method do_nothing = ()
> end
> The command "ocamlcp -c" gives:
> This generated file indeed doesn't compile with ocamlc.  I am using 
> 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 "", which is incorrect.  O'Caml 
    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 
    letter.  Otherwise, you will run into problems sooner or later.

-- Damien

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