From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: ** X-Spam-Status: No, score=2.6 required=5.0 tests=AWL,DNS_FROM_RFC_POST, HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 47E02BBAF for ; Sun, 4 Oct 2009 21:32:19 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtsBAIaVyErRVdrRkGdsb2JhbACCJS+OZYh9PwEBAQEJCQwHEwOkJ4E7jVYBAwMFhCUEgVI X-IronPort-AV: E=Sophos;i="4.44,503,1249250400"; d="scan'208";a="35618627" Received: from mail-bw0-f209.google.com ([209.85.218.209]) by mail3-smtp-sop.national.inria.fr with ESMTP; 04 Oct 2009 21:32:18 +0200 Received: by bwz5 with SMTP id 5so2047150bwz.27 for ; Sun, 04 Oct 2009 12:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=LR6PQoJJu4JHkRYrBdK/UkQ14K7r6B/34NEcDSra3oo=; b=XGsbMyivM/AN3KH0Fb3V/Cml6sUYUOwvY2JF2So5maEX64DoMMCDEBCJbbACIeJ2Bt ze96myfZWs0vymZIx7s6IR1DU5Z+a5+rgyQuWOk9rlcBnsaZtfd05Fz0IHOBltwPwhy7 jsrIwFHtmqKXmZOZ4qEC+7s7j091F7ehlW05Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=rIpRIqxScQEyzPpr9APPZj4UbPK6ZF0ArJiydnWNR/XWL2nCOiIXfw1T/u9tirbQLb uZ8gCLp3QPy4JLWWNIwCUAD5iiyVjomRejOGf0+DMlXwtu/P/QN3kEAaIGK2a3FCIrZu GH2qel3QSmvh/PR9+13wEyApWeSMUs9kMYb9g= MIME-Version: 1.0 Received: by 10.204.20.82 with SMTP id e18mr3281891bkb.168.1254684737579; Sun, 04 Oct 2009 12:32:17 -0700 (PDT) In-Reply-To: <20091004190509.GA31372@annexia.org> References: <20091004190509.GA31372@annexia.org> Date: Sun, 4 Oct 2009 20:32:17 +0100 Message-ID: Subject: Re: [Caml-list] Dynlink and ocamlfind for camlp4 3.11? From: Conglun Yao To: Richard Jones Cc: caml-list@yquem.inria.fr Content-Type: multipart/alternative; boundary=000325559f5616ad160475210ea7 X-Spam: no; 0.00; dynlink:01 ocamlfind:01 camlp:01 ocamlfind:01 ocamlc:01 -package:01 dynlink:01 camlp:01 ocamlc:01 -package:01 cygwin:01 ocaml:01 findlib:01 cygwin:01 0100,:01 --000325559f5616ad160475210ea7 Content-Type: text/plain; charset=ISO-8859-1 Thanks, Rich. ocamlfind ocamlc -package dynlink,json-static -syntax camlp4o -c test.ml ocamlfind ocamlc -package "dynlink,json-static" -syntax camlp4o -c test.ml ocamlfind ocamlc -package 'dynlink,json-static' -syntax camlp4o -c test.ml But it still does not work. System: cygwin + OCaml 3.11.1 + findlib 1.2.5 + json-staic 0,9.8 Everything works fine when I use Ubuntu, but when changed to cygwin, it breaks. Conglun On Sun, Oct 4, 2009 at 8:05 PM, Richard Jones wrote: > On Sun, Oct 04, 2009 at 03:22:31PM +0100, Conglun Yao wrote: > > Dear all, > > > > I have tried to use json-static in OCaml 3.11, but met the annoying > problem: > > > > Reference to undefined global `Dynlink' > > > > > > As Camlp4 3.11 requires explicit load of dynlink, so I tried > > > > ocamlfind ocamlc -package dynlink, json-static -syntax > > camlp4o -o test test.ml -linkpkg > > Is there really a space in "dynlink, json-static". You'll need to try > it without the space, or quote it. > > Rich. > > -- > Richard Jones > Red Hat > --000325559f5616ad160475210ea7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks, Rich.

ocamlfind ocamlc -package dynlink,json-static -syntax = camlp4o -c test.ml
ocamlfind ocamlc -pack= age "dynlink,json-static" -syntax camlp4o -c test.ml
ocamlfind ocamlc -package 'dynlink,json-static' -syntax camlp4o -c = test.ml

But it still does not work. <= br>
System:=A0 cygwin=A0 + OCaml 3.11.1 + findlib 1.2.5 + json-staic 0,9= .8

Everything works fine when I use Ubuntu, but when changed to cygwin, it= breaks.

Conglun

On Sun, Oct 4, 2= 009 at 8:05 PM, Richard Jones <rich@annexia.org> wrote:
On Sun, Oct 04, 2009 at 03:22:31PM +0100, Conglun Yao wrote:
> Dear all,
>
> I have tried to use json-static in OCaml 3.11, but met the annoying pr= oblem:
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Reference to undefined global = `Dynlink'
>
>
> As Camlp4 3.11 requires explicit load of =A0dynlink, so I tried
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ocamlfind ocamlc -package dynli= nk, json-static -syntax
> camlp4o -o test =A0test.m= l -linkpkg

Is there really a space in "dynlink, json-static". =A0You&#= 39;ll need to try
it without the space, or quote it.

Rich.

--
Richard Jones
Red Hat

--000325559f5616ad160475210ea7--