Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: Matthieu Dubuget <matthieu.dubuget@libertysurf.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] DLL (windows) creation problem
Date: Thu, 23 Sep 2004 16:25:50 -0400 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.61.0409231622470.2707@slinky.cs.nyu.edu> (raw)
In-Reply-To: <41531F37.1060907@libertysurf.fr>

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
DLLs/programs).

> > 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
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		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


  reply	other threads:[~2004-09-23 20:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-23 16:44 matthieu.dubuget
2004-09-23 16:57 ` Igor Pechtchanski
2004-09-23 19:08   ` Matthieu Dubuget
2004-09-23 20:25     ` Igor Pechtchanski [this message]
2004-09-24  7:27 matthieu.dubuget
2004-09-24 15:21 ` Igor Pechtchanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.61.0409231622470.2707@slinky.cs.nyu.edu \
    --to=pechtcha@cs.nyu.edu \
    --cc=caml-list@inria.fr \
    --cc=matthieu.dubuget@libertysurf.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox