Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 <info@gerd-stolpmann.de> 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 online_db.ml
>> File "online_db.ml", 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
problem.

Regards,
Markus

-- 
Markus Mottl http://www.ocaml.info markus.mottl@gmail.com