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
Reference to undefined global `Camlp4_config'
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jérémie Dimino <jeremie@d...>
Subject: Re: [Caml-list] Reference to undefined global `Camlp4_config'
Joel Reymont wrote:
> ocamlfind ocamlc -package 'oUnit, extlib, *camlp4*' -linkpkg -g src/ 
> easy_ast.cmo src/easy_code.cmo src/easy_lexer.cmo src/easy_symtab.cmo  
> src/token.cmo src/static1.cmo src/easy_parser.cmo src/test_tools.cmo  
> src/parser_test.cmo src/test.cmo -o src/test.byte
> File "_none_", line 1, characters 0-1:
> Error: Error while linking src/easy_lexer.cmo:
> Reference to undefined global `Camlp4_config'

The "camlp4" package is only useful when using syntax extensions (it
defines the "preprocessor" variable). If you want to use the camlp4
library you must use the "camlp4.lib" package instead.