English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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
> > <http://cygwin.com/ml/cygwin-apps/2004-09/msg00195.html>).  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
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,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 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