Article View: fa.caml
Article #148[Caml-list] ocamlfind + sexplib + bin_io
From: Matej Košík
Date: Fri, 27 Apr 2012 18:21
Date: Fri, 27 Apr 2012 18:21
46 lines
4308 bytes
4308 bytes
Hi, I have decided to switch to ocamlfind. All goes find but I have ran into a problem how to make "ocaml", "sexplib" and "bin_io" play together. Suppose that I have the following "program": type test = Foo | Bar with sexp, bin_io when I try to compile it without ocamlfind: ocamlc -o main -pp "camlp4o -I ZZZ/lib/godi/lib/ocaml/pkg-lib/sexplib -I ZZZ/lib/godi/lib/ocaml/pkg-lib/type-conv -I ZZZ/lib/godi/lib/ocaml/pkg-lib/bin_prot pa_type_conv.cma pa_sexp_conv.cma pa_bin_prot.cma" -I ZZZ/lib/godi/lib/ocaml/pkg-lib/sexplib -I ZZZ/lib/godi/lib/ocaml/pkg-lib/type-conv -I ZZZ/lib/godi/lib/ocaml/pkg-lib/bin_prot unix.cma nums.cma bigarray.cma sexplib.cma bin_prot.cma main.ml all goes well. When I try to simplify the build instruction with ocamlfind: ocamlfind ocamlc -linkpkg -package sexplib,sexplib.syntax,bin_prot,bin_prot.syntax -syntax camlp4o main.ml I get the following error: Camlp4: Uncaught exception: Not_found File "main.ml", line 1, characters 0-1: Error: Preprocessor error What should I put on the command-line along with ocamlfind to be able to compile the original program; if that is what I am doing wrong. Thank you very much in advance for the help. -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs
Technical Details
Message-ID:
<fa.2mrpL20h0c0thL5y7GGoRONNaz4@ifi.uio.no>Path:
arc1-ca.pugleaf.net!h15ni172385bkw.0!nntp.google.com!news2.google.com!news.glorb.com!uio.no!nntp.uio.no!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: ff861,17a08b99de7d2d3c,start
X-Google-NewGroupId: yes
X-Google-Attributes: gidc0fe4b917e,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.205.123.140 with SMTP id gk12mr1404065bkc.1.1335550897789;
Fri, 27 Apr 2012 11:21:37 -0700 (PDT)
Path: arc1-ca.pugleaf.net!h15ni172385bkw.0!nntp.google.com!news2.google.com!news.glorb.com!uio.no!nntp.uio.no!.POSTED!not-for-mail
From: Matej Košík
<5764c029b688c1c0d24a2e97cd764f@gmail.com>
Newsgroups: fa.caml
Subject: [Caml-list] ocamlfind + sexplib + bin_io
Date: Fri, 27 Apr 2012 18:21:37 UTC
Organization: Internet mailing list
Lines: 47
Message-ID: <fa.2mrpL20h0c0thL5y7GGoRONNaz4@ifi.uio.no>
NNTP-Posting-Host: mail-jess.uio.no
Mime-Version: 1.0
X-Trace: readme.uio.no 1335550897 9732 129.240.7.9 (27 Apr 2012 18:21:37 GMT)
X-Complaints-To: abuse@uio.no
NNTP-Posting-Date: Fri, 27 Apr 2012 18:21:37 +0000 (UTC)
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1
To: Caml List <caml-list@inria.fr>
X-IronPort-AV: E=Sophos;i="4.75,492,1330902000";
d="scan'208";a="155963856"
X-Authentication-Warning: walapai.inria.fr: sympa set sender to caml-list-owner@inria.fr using -f
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AokDACfjmk/RVde2kGdsb2JhbABEgiAEeYJLrBEIIgEBAQEJCQ0HFAQjgiICDx0BGxwCAxIQDwIFFgsCCwMCAQIBEREBBQEiDQgBAR6HXAEDCwSaQoJeCotTUIJzhRgKGScNV4h2AQULgSSOfIEYBJV9gRGEY4NkhQg9hAw
X-IronPort-AV: E=Sophos;i="4.75,492,1330902000";
d="scan'208";a="155963789"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=message-id:date:from:user-agent:mime-version:to:subject
:x-enigmail-version:content-type:content-transfer-encoding;
bh=setWJ12MuaW1ywS58XnQV/4T9nqW0hWwiPg7olhBl38=;
b=F/t838hWLE9LwwGT/aYmGdBXDDo0amF1Pl3wVxqKQA0M+M1EStYwNtDc6av7sLth1H
QLwYj+dI++cbBeNIVnLOb8VELBxuaGTp7XtCjq/QYjRowNO3KRuOQn1t+qdfPLPxJmgk
/PjBPgm3rrF2MF0eSYRvFfmDmp02MSORi2+4tehz5kxwnt7HsBaIo/98RkeW23+5pOnv
ovbeKpblcyPwmeZosW6QbQfBoFhwgj4MLh5p+RGOMLurEqkILleVpEYDeszusqGMCtNC
bJnn3y5aOSjFtdai/ecr0a+TduNXJT33uDppu5Vtl8AUvq0K7Bp1VmCpanHxLbNcSQgX
TFsg==
X-Enigmail-Version: 1.4.1
X-Sequence: 3978
List-Id: <caml-list.inria.fr>
List-Archive: <https://sympa-roc.inria.fr/wws/arc/caml-list>
List-Help: <mailto:sympa@inria.fr?subject=help>
List-Owner: <mailto:caml-list-request@inria.fr>
List-Post: <mailto:caml-list@inria.fr>
List-Subscribe: <mailto:sympa@inria.fr?subject=subscribe%20caml-list>
List-Unsubscribe: <mailto:sympa@inria.fr?subject=unsubscribe%20caml-list>
Original-Date: Fri, 27 Apr 2012 19:21:15 +0100
Original-Message-Id: <4F9AE39B.8010500@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit