On Sun, Oct 4, 2009 at 8:53 PM, Conglun Yao <yaocong...@gmail.com> wrote:

>
>
>>
>> In that case, try listing dynlink explicitly, like:
>>
>>  ocamlfind ocamlc dynlink.cma -package json-static [etc]
>>
>
> $ ocamlfind ocamlc dynlink.cma -package json-static -syntax camlp4o -c
> test.ml
>
> $ ocamlfind ocamlc -I /home/conglun/godi/lib/ocaml/pkg-lib/camlp4
> dynlink.cma -package json-static -syntax camlp4o -c t.ml
>
>
> Error: Error while linking
> /home/conglun/godi/lib/ocaml/std-lib/camlp4/camlp4lib.cma(Camlp4):
> Reference to undefined global `Dynlink'
>
>
>>
>> Anyhow, it sounds like a bug in the META files that are supplied with
>> your cygwin OCaml distribution.
>>
>>
> I think you are right, the problem happens on the camlp4o or cygwin, which
> can't load dynlink.  But I can't find problem in the camlp4's META  (in the
> attachment)
>
> Thanks,
>
> Conglun
>


However, if I do the following test, it works fine.

test.ml

    let x = 1

    let _ = print_int x

ocamlfind ocamlc -package camlp4 -syntax camlp4o -c t.ml

Attachment: META
Description: Binary data

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

Reply via email to