Version française
Home     About     Download     Resources     Contact us    
Browse thread
building executables with camlp4
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jeremy Yallop <jeremy.yallop@e...>
Subject: building executables with camlp4
With the 3.09 version of camlp4 I could build an executable for my 
extension by linking against various .cmx files.  Is it possible to do 
something similar with the new camlp4 in 3.10?  I've tried linking with

    camlp4lib.cmxa
    Camlp4Parsers/Camlp4OCamlRevisedParser.cmx
    Camlp4Parsers/Camlp4OCamlParser.cmx
    Camlp4Printers/Camlp4OCamlRevisedPrinter.cmx
    Camlp4Printers/Camlp4OCamlPrinter.cmx

which results in an executable that fails with Not_found when run, 
apparently due to a failure to delete a rule from the grammar.  Building 
a set of bytecode (.cmo) files and loading them with camlp4o works as 
expected.

In case it makes things simpler I'm using OCamlMakefile,

Jeremy.