Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Cygwin & dynamic loading
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Cygwin & dynamic loading
> Can anybody give me some enlightenment (so that I can sleep better again)
> about the Cygwin port of OCaml.  I am running this port since version 3.04
> and never encountered the following error message until I installed my
> Windows system from scratch:
> 
> $ ocamlmktop -o ocaml-str str.cma
> Error on dynamically loaded library: dynamic loading not supported on this
> platform
> [...]
> Does the native Windows OCaml installation interfere with the Cygwin port
> (that's the only obvious difference between the two systems).

Yes, the two installations can interfere: the native Windows installer
sets the OCAMLLIB environment variable to point to its libraries.
Thus, if you don't unset this variable or set it to point to the
libraries of the Cygwin installation of OCaml, the latter will use the
wrong libraries.  And indeed the native str.cma is set up to use
dynamic loading, while the Cygwin str.cma is set up to use -custom and
no dynamic loading.

Hope this explains your problem.

- Xavier Leroy

-------------------
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