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 SAA08907; Sat, 17 Aug 2002 18:31:48 +0200 (MET DST) 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 SAA08865 for ; Sat, 17 Aug 2002 18:31:47 +0200 (MET DST) Received: from venus.is.s.u-tokyo.ac.jp (venus.is.s.u-tokyo.ac.jp [133.11.12.9]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7HGUvr29538 for ; Sat, 17 Aug 2002 18:31:00 +0200 (MET DST) Received: from tuba.is.s.u-tokyo.ac.jp (tuba.is.s.u-tokyo.ac.jp [133.11.12.102]) by venus.is.s.u-tokyo.ac.jp (8.11.6/3.7W) with ESMTP id g7HGUrY25658 for ; Sun, 18 Aug 2002 01:30:53 +0900 (JST) Received: (from oiwa@localhost) by tuba.is.s.u-tokyo.ac.jp (8.11.6+Sun/3.7W) id g7HGUrQ06030; Sun, 18 Aug 2002 01:30:53 +0900 (JST) X-Authentication-Warning: tuba.is.s.u-tokyo.ac.jp: oiwa set sender to oiwa@yl.is.s.u-tokyo.ac.jp using -f To: caml-list@inria.fr Subject: PCRE on Win32-VC (Re: [Caml-list] compiling PXP , OCAMLNET AND PCRE to win32) References: <20020817142803.GA996@ice.gerd-stolpmann.de> From: Yutaka OIWA Date: 18 Aug 2002 01:30:53 +0900 In-Reply-To: Gerd Stolpmann's message of "Sat, 17 Aug 2002 16:28:03 +0200" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk >> On Sat, 17 Aug 2002 16:28:03 +0200, Gerd Stolpmann said: Gerd> I don't know how to build PCRE for win32, but I would expect that it is Gerd> doable. It is possible, I have done, but currently some hacks are needed. I compiled PCRE source by Visual C++ 6 using hand-written Makefile (see the document named NON-UNIX-USE in PCRE distribution), passed some additional build-option to the pcre-ocaml library. It works, at least in my computer, with static linking. Some of the problems I found are already solved and reported to Markus. It is fixed in pcre-ocaml-4.28.2 (OCamlMakefile update). One problem not solved is that OCamlMakefile pass the option '--ccopt pcre' to ocamlc, and thus VC's linker searches the file pcre.obj, not pcre.lib. I have an ad-hoc solution to this problem, but I don't know whether it is correct or not. Once I find the correct answer, I'll report it. # A Question: # In what pathname should I place the native PCRE library? # Name "pcre.lib"? "libpcre.lib"? # Path "$(OCAMLLIBDIR)/contrib"? or "/winnt/system32" or whatever? # Or should it be merged into "libpcre_stubs.lib"? ## Does someone have a good knowledge of dynamic linking in Win32? ## I have almost no knowledge of it. -- Yutaka Oiwa Yonezawa Lab., Dept. of Computer Science, Graduate School of Information Sci. & Tech., Univ. of Tokyo. , PGP fingerprint = C9 8D 5C B8 86 ED D8 07 EA 59 34 D8 F4 65 53 61 ------------------- 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