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 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 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 with

	Thanks, Joel