caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Markus Mottl" <markus.mottl@gmail.com>
To: "Gerd Stolpmann" <info@gerd-stolpmann.de>
Cc: "Luca de Alfaro" <luca@dealfaro.org>,
	"Inria Ocaml Mailing List" <caml-list@inria.fr>
Subject: Re: [Caml-list] How to compile using sexplib?
Date: Thu, 12 Jun 2008 15:17:50 -0400	[thread overview]
Message-ID: <f8560b80806121217u7c55df0fr9eb67a3566038ac7@mail.gmail.com> (raw)
In-Reply-To: <1213291687.10641.25.camel@flake.lan.gerd-stolpmann.de>

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


      parent reply	other threads:[~2008-06-12 19:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-12 16:44 Luca de Alfaro
2008-06-12 17:28 ` [Caml-list] " Gerd Stolpmann
2008-06-12 18:42   ` Markus Mottl
2008-06-12 19:23     ` Sylvain Le Gall
2008-06-12 22:02       ` [Caml-list] " Ian Pye
2008-06-12 22:31         ` Sylvain Le Gall
2008-06-12 19:17   ` Markus Mottl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f8560b80806121217u7c55df0fr9eb67a3566038ac7@mail.gmail.com \
    --to=markus.mottl@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=info@gerd-stolpmann.de \
    --cc=luca@dealfaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).