Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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 "foo.ml" 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
now.

-- 
Eric C. Cooper          e c c @ c m u . e d u
-------------------
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