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] problem with -pack, native code, and PCRE
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-02-17 (20:04)
From: Eric C. Cooper <ecc@c...>
Subject: Re: [Caml-list] problem with -pack, native code, and PCRE
On Mon, Feb 17, 2003 at 11:37:13AM +0100, Xavier Leroy wrote:
> > If I use "-pack" on a native-code module that uses Pcre, I get link
> > errors when I try to use it.  It works fine with bytecode.
> I think it's an instance of PR#1480.  Your test script works fine with
> the development version of OCaml.  I don't think there is an easy
> workaround for OCaml 3.06.

I ended up working around this by doing the packing "manually".
Continuing my earlier example, I have "" containing
	   module A = A
Of course, I have to explicitly link with all the sub-modules, and
they are present in the top-level namespace, but that's acceptable for

Eric C. Cooper          e c c @ c m u . e d u
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: