Mateusz Malinowski wrote:
I have some problems with compilation of Links. After typing make I get 'Unbound module Camlp4.PreCast.Ast'. I think it's due to wrong path to my library. That is Makefile try to use the following command to compile my code:' ocamlc.opt -c -dtypes -dtypes -w Ae -I /usr/local/lib/camlp4 -I deriving-310/lib utils.ml' but camlp4 is located in '/usr/lib/camlp4' directory. The question is how I can change this path? I tried to look at the Makefile but I couldn't figure out which line should be changed.
The build system uses the output of "camlp4 -where" to determine the location of camlp4. If that fails then the location defaults to /usr/local/lib/camlp4. (Searching for "/usr/local/lib/camlp4" in the file OCamlMakefile should give you an idea of how it works.)
It may be that you need to add /usr/lib/camlp4 (or the directory where the camlp4 binary is located) to PATH. Does running "camlp4 -where" give any output?
Jeremy. -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ links-users mailing list [email protected] http://lists.inf.ed.ac.uk/mailman/listinfo/links-users
