Browse thread
ocamlc: how to keep sources and objects in different directories?
-
Roberto Bagnara
-
Vincent Hanquez
-
Roberto Bagnara
- Nicolas Pouillard
-
Roberto Bagnara
-
Vincent Hanquez
[
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: | Nicolas Pouillard <nicolas.pouillard@g...> |
| Subject: | Re: [Caml-list] ocamlc: how to keep sources and objects in different directories? |
Excerpts from Roberto Bagnara's message of Wed Aug 13 09:32:51 +0200 2008: > Vincent Hanquez wrote: > > On Tue, Aug 12, 2008 at 07:03:06PM +0200, Roberto Bagnara wrote: > >> Hi there, > >> > >> it seems that `ocamlc' wants to create the .cmo file in the same > >> directories as the .ml file. More specifically I observe this: > >> > >> $ ocamlc -g -c -I +gmp -I ../../../interfaces/OCaml ../../../interfaces/OCaml/ppl_ocaml_types.ml > >> I/O error: ../../../interfaces/OCaml/ppl_ocaml_types.cmo: Permission denied > >> > >> The ../../../interfaces/OCaml directory is read-only: > >> is there an option causing `ocamlc' to write the .cmo > >> file in the current directory instead? > > > > you can use "-o ./ppl_ocaml_types.cmo" > > Thanks Vincent, but it does not work: > > $ ocamlc -g -c -I +gmp -I ../../../interfaces/OCaml ../../../interfaces/OCaml/ppl_ocaml_types.ml > I/O error: ../../../interfaces/OCaml/ppl_ocaml_types.cmo: Permission denied > $ ocamlc -g -c -I +gmp -I ../../../interfaces/OCaml ../../../interfaces/OCaml/ppl_ocaml_types.ml -o ./ppl_ocaml_types.cmo > I/O error: ../../../interfaces/OCaml/ppl_ocaml_types.cmo: Permission denied > $ ocamlc -version > 3.10.1 > > Any other idea? The -o option should be before the .ml. Regards, -- Nicolas Pouillard aka Ertai