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
ocamlbuild and automatic dependencies
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-03-14 (12:36)
From: Joel Reymont <joelr1@g...>
Subject: Re: [Caml-list] ocamlbuild and automatic dependencies

On Mar 14, 2007, at 12:24 PM, Nicolas Pouillard wrote:

> ocamlbuild runs ocamldep -module on your file so you can experiment  
> by yourself.


open Ninja
module E = Easy

ocamldep -modules generator.ml
generator.ml: Easy List Ninja String

ocamlbuild test.byte --
+ ocamlfind ocamlc -package ounit -linkpkg easy_code.cmo  
generator.cmo parser_util.cmo symtab.cmo easy_parser.cmo  
easy_lexer.cmo parser_test.cmo generator_test.cmo test.cmo -o test.byte
Error while linking generator.cmo: Reference to undefined global `Easy'

The warnings in the _log file are about OUnit which is an external  
library. There are no other warnings. Everything builds fine if I  
remove "module E = Easy" and replace all references to E.xxx with  

	Thanks, Joel