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=0.0 required=5.0 tests=AWL 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 F3096BBAF for ; Mon, 5 Oct 2009 19:28:30 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmUBALvJyUpRZ90wkWdsb2JhbACadwEBAQEJCwoHEwO3QoQqBIFS X-IronPort-AV: E=Sophos;i="4.44,507,1249250400"; d="scan'208";a="35707430" Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]) by mail3-smtp-sop.national.inria.fr with ESMTP; 05 Oct 2009 19:28:30 +0200 Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20091005172826.CQGO27507.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com> for ; Mon, 5 Oct 2009 18:28:26 +0100 Received: from romulus.metastack.com ([81.102.132.77]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20091005172825.LZDR2093.aamtaout03-winn.ispmail.ntl.com@romulus.metastack.com> for ; Mon, 5 Oct 2009 18:28:25 +0100 Received: from Tenor ([212.183.140.21]) (authenticated bits=0) by romulus.metastack.com (8.14.2/8.14.2) with ESMTP id n95HSH78013574 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Mon, 5 Oct 2009 18:28:21 +0100 From: "David Allsopp" To: References: <20091004190509.GA31372@annexia.org> <20091004193740.GB28561@annexia.org> <1254749754.1870.12.camel@flake.lan.gerd-stolpmann.de> In-Reply-To: Subject: RE: [Caml-list] Dynlink and ocamlfind for camlp4 3.11? Date: Mon, 5 Oct 2009 18:28:17 +0100 Message-ID: <001b01ca45e1$3c12bea0$b4383be0$@metastack.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcpFzvwvVD5wpDLlSUSJJaaVClSApwAEajaA Content-Language: en-gb Organization: MetaStack Solutions Ltd. X-Scanned-By: MIMEDefang 2.65 on 81.102.132.77 X-Cloudmark-Analysis: v=1.0 c=1 a=TLNnZyDONCQA:10 a=9pY-4jqZqg3WSBAFwwgA:9 a=RpVlfeJDrJrQNT9FevQA:7 a=FOX3KzSKhez0cafsEdk_-R46ICMA:4 X-Spam: no; 0.00; dynlink:01 ocamlfind:01 camlp:01 cygwin:01 dynlink:01 bytecode:01 ocaml:01 mingw:01 mingw:01 ocaml:01 pcre:01 trivial:01 afaik:01 ubuntu:98 wrote:01 Conglun Yao wrote: > Thanks for all of your help. > > Unfortunately, it still does not work. It is really nightmare to use camp4 in a windows machine. In this instance, it's very much Cygwin that's causing the problem, rather than Windows! I didn't realise that Cygwin's Dynlink only extended to pure bytecode (it used not to have Dynlink at all). > I try to reinstall plain OCaml without using GODI, if the same error happens, I have to go back to Ubuntu. You could try using the -w32port mingw flag for GODI to build the MinGW version of OCaml - you can still use it from Cygwin's bash prompt but you will definitely have a fully functional dynamic loading version. Alternatively, if you want I can email you the instructions change log I use for building MinGW & MSVC OCaml on Windows (one day I'll have the time to put it online ). Try GODI/MinGW first - building PCRE is not trivial and AFAIK GODI has full build-support for ocaml-pcre on Windows. David