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
How to compile using sexplib?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-06-12 (19:17)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] How to compile using sexplib?
On Thu, Jun 12, 2008 at 1:28 PM, Gerd Stolpmann <> wrote:
>> This is what I get:
>> ocamlfind ocamlc -package
>> unix,str,vec,mapmin,hashtbl_bounded,fileinfo,intvmap,extlib,mysql,sexplib -I ../../batch/analysis -I +camlp4 -pp camlp4orf -g -c
>> File "", line 44, characters 22-26:
>> Parse error: [semi] expected after [str_item] (in [implem])
>> Preprocessor error

I have taken another quick look at this problem.  Here is the solution:

Use "sexplib.syntax" instead of "sexplib" as package, add "-syntax
camlp4o", and drop "-I +camlp4 -pp camlp4orf".  This should fix the


Markus Mottl