From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA01895; Fri, 21 Nov 2003 17:21:52 +0100 (MET) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA02697 for ; Fri, 21 Nov 2003 17:21:51 +0100 (MET) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hALGLo107155 for ; Fri, 21 Nov 2003 17:21:50 +0100 (MET) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.12.10/1.01.28121999) with ESMTP id hALGLnaW016357 ; Fri, 21 Nov 2003 17:21:49 +0100 (CET) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id hALGLkVc002550 ; Fri, 21 Nov 2003 17:21:47 +0100 (MET) X-Authentication-Warning: clipper.ens.fr: frisch owned process doing -bs Date: Fri, 21 Nov 2003 17:21:46 +0100 (MET) From: Alain.Frisch@ens.fr X-X-Sender: frisch@clipper.ens.fr Reply-To: Alain.Frisch@ens.fr To: Caml list cc: Giuseppe Castagna Subject: [Caml-list] ocaml-pcre et mingw Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; alain:01 frisch:01 mingw:01 pcre-ocaml:01 mingw:01 cflags:01 -mno-cygwin:01 ocamlfind:01 ocamlc:01 pcre:01 -linkpkg:01 ocamlmgw:01 site-lib:01 pcre:01 libpcre:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I'm trying to build pcre-ocaml with the mingw port of OCaml for Windows. Has anyone succeeded to do it? My best guess was to compile with "make CFLAGS=-mno-cygwin" and STATIC=yes (in Makefile.conf), but when I try to link a program, I get: $ ocamlfind ocamlc -package pcre -linkpkg -o x x.ml C:/ocamlmgw/lib/site-lib\pcre/libpcre_stubs.a(pcre_stubs.o.b)(.text+0xee7):pcre_ stubs.c: undefined reference to `__ctype_' collect2: ld returned 1 exit status Error while building custom runtime system I guess I have to say somewhere that I want to link for mingw, not cygwin. Can anyone help? Cheers, Alain ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners