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

Reply via email to