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] Cygwin & dynamic loading
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-04-24 (07:28)
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 Archives:
Bug reports: FAQ:
Beginner's list: