Version française
Home     About     Download     Resources     Contact us    
Browse thread
Trouble with "ocamlbuild main.native"
[ 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] Trouble with "ocamlbuild main.native"
Excerpts from Richard Cobbe's message of Wed Mar 26 00:17:12 +0100 2008:
> I'm having some difficulty getting ocamlbuild to produce native binaries
> for a project that's spread over multiple directories.  I'm hoping someone
> can explain what I'm doing wrong here.

You've hitted the -for-pack oddify :)

[...]

>     <frontEnd/**/*.ml>: for-pack(frontEnd)
>     <backEnd/**/*.ml>: for-pack(backEnd)
>     <dataRep/**/*.ml>: for-pack(dataRep)

Almost there... that's .cmx instead of .ml

     <frontEnd/**/*.cmx>: for-pack(frontEnd)
     <backEnd/**/*.cmx>: for-pack(backEnd)
     <dataRep/**/*.cmx>: for-pack(dataRep)

Best regards,

-- 
Nicolas Pouillard aka Ertai