English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2008-03-26 (00:48)
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