Browse thread
Issue to compile a program with camlp4 in OCaml 3.10.0
-
David MENTRE
- Gabriel Kerneis
- Сергей_ Плаксин
- Richard Jones
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Сергей_ Плаксин <serp@s...> |
| Subject: | Re: [Caml-list] Issue to compile a program with camlp4 in OCaml 3.10.0 |
On Mon, 2008-09-22 at 22:41 +0200, David MENTRE wrote: > Hello, > > I'm trying to compile an OCaml program I haven't written. I'm compiling > it on an Ubuntu 8.04, OCaml 3.10.0. > > The compilation fails with following error: > """ > ocamlopt -pp "camlp4o pa_op.cmo" -I src -c src/common.ml > File "src/common.ml", line 5, characters 101-102: > Parse error: "in" expected after [binding] (in [expr]) > Preprocessor error > """ > > Here is the beginning of the relevant file: > """ > (** Common utility functions. *) > > (* space *) > > let heap_size () : float = float_of_int (Gc.stat ()).Gc.heap_words *. float_of_int (Sys.word_size / 8) (* in bytes *) This code successfuly compiled on my ocaml 3.10.2 without any "pa_op.cmo", what is pa_op.cmo?