Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] compiling PXP , OCAMLNET AND PCRE to win32
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Markus Mottl <markus@o...>
Subject: Re: PCRE on Win32-VC (Re: [Caml-list] compiling PXP , OCAMLNET AND PCRE to win32)
On Sun, 18 Aug 2002, Yutaka OIWA wrote:
> One problem not solved is that OCamlMakefile pass the option
> '--ccopt pcre' to ocamlc, and thus VC's linker searches the file pcre.obj,

Are you sure that this option is passed? This option would actually
not make much sense so I'd be grateful if you could tell me the exact
command line.

> # 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"?

When PCRE is statically linked, then it probably does not really matter,
you should only make sure that the path is mentioned in LIBDIRS before
compilation of PCRE-OCaml: then the compiler should automatically link
in the required functions statically.

In case you manage to build a dynamic version of PCRE, then you'll
probably have to put the library in some place where the system can
find it.

> ## Does someone have a good knowledge of dynamic linking in Win32?
> ## I have almost no knowledge of it.

Sorry, I don't have the slightest idea, but suppose that it is
conceptually similar to other systems.

Markus Mottl

Markus Mottl                                   
Austrian Research Institute
for Artificial Intelligence        
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: