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] DLL_(windows)_creation_problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-09-23 (20:25)
From: Igor Pechtchanski <pechtcha@c...>
Subject: Re: [Caml-list] DLL (windows) creation problem
On Thu, 23 Sep 2004, Matthieu Dubuget wrote:

> Igor Pechtchanski wrote:
> > The dependent DLL should be in the PATH (instead of LD_LIBRARY_PATH).
> > Windows should tell you which DLL is missing (I suspect it's the one that
> > contains the Printf module).
> That's part of what puzzle me: no indication. Just one runtime invalid
> operation.

I'm sorry, I was wrong.  The normal DLL loading mechanism will report the
name of the DLL that's missing, but LoadLibrary will simply set the error
and exit.  You could use a DLL dependency tool to find out which DLL yours
depends on (e.g., Cygwin's "cygcheck", which will also work on non-Cygwin

> > FWIW, I've just posted a Cygwin ocaml package version that supports
> > dynamic linking and should let you use the above Linux transcript almost
> > verbatim (only tested on WinXP for now, see
> > <>).  It's not on
> > the mirrors yet, but feel free to test it out, and, if you do, please
> > report the results to me or the Cygwin list (<cygwin at cygwin dot com>).
> I surely will try it!
> And will also try to have my little test compiled with:
> - a static lib instead of a DLL to see if i get more informations from MS
> toolchain
> - bytecode version

I'd be interested in the results (hopefully positive) of your tests.  Feel
free to e-mail me directly with this info.

Igor Pechtchanski, volunteer O'Caml maintainer for Cygwin
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: