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
ocamlbuild with pack
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] ocamlbuild with pack
On 6/17/07, Sean McLaughlin <> wrote:
> Hello
> I've run into a problem with ocamlbuild and -pack.
> It will build bytecode packages, but not native ones.
> E.g.,


> File a.cmx was not compiled with the `-for-pack Lib' option
> Command exited with code 1.
>  What am I doing wrong?

ocamlbuild does not keep track of -for-pack options. There is way to
provide the architecture of your project in order to give for-pack
option nicely but that worth only for big projects.

The easy way is:

$ cat _tags
"a.cmx": for-pack(Lib)


Nicolas Pouillard