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
ocamlopt problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-10-06 (07:25)
From: David MENTRE <david.mentre@g...>
Subject: Re: [Caml-list] ocamlopt problem

2005/10/6, Rasool Karimi <>:
> this message is in german and translation of it in english is : "The
> instruction "as" is either wrongly written or could not not be found". But
> when I compile a .mli file, this message is not shown and file is compiled
> successfully. Also when I compile a .ml file with ocamlc compiler, there is
> no error and compilation is done successfully. So there is not error in my
> program and this error maybe is related to ocamlopt compiler.

There is no reason that a particular error occurs with ocamlopt and
not ocamlc, especially as the syntax and typing phases are common to
both compilers (moreover, bugs in ocaml compilers are quite rare. Rule
of thumb: never suspect a bug in the compiler, always in your code).
So I would suspect an issue with your particular file or your
compiling environment. We cannot say much more without (1) having your
particular .ml and .mli file and (2) knowing in which environment your
are compiling.