From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA00180; Thu, 23 Sep 2004 22:25:54 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA00619 for ; Thu, 23 Sep 2004 22:25:52 +0200 (MET DST) Received: from slinky.cs.nyu.edu (SLINKY.CS.NYU.EDU [128.122.20.14]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i8NKPqKZ025848 for ; Thu, 23 Sep 2004 22:25:52 +0200 Received: from localhost (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.10+Sun/8.12.10) with ESMTP id i8NKPooQ003473; Thu, 23 Sep 2004 16:25:50 -0400 (EDT) Date: Thu, 23 Sep 2004 16:25:50 -0400 (EDT) From: Igor Pechtchanski Reply-To: caml-list@inria.fr To: Matthieu Dubuget cc: caml-list@inria.fr Subject: Re: [Caml-list] DLL (windows) creation problem In-Reply-To: <41531F37.1060907@libertysurf.fr> Message-ID: References: <41531F37.1060907@libertysurf.fr> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 X-Miltered: at concorde with ID 41533150.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; nyu:99 caml-list:01 matthieu:01 dubuget:01 printf:01 runtime:01 loadlibrary:01 cygwin's:01 non-cygwin:01 dlls:01 fwiw:01 cygwin:01 transcript:99 winxp:99 cygwin:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 > > ). 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 (). > > 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