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 AAA30095; Sat, 28 Feb 2004 00:57:23 +0100 (MET) 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 AAA29659 for ; Sat, 28 Feb 2004 00:57:22 +0100 (MET) Received: from rdcmx1.safeco.com (rdcmx1.safeco.com [12.144.132.31]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1RNvKae026227 for ; Sat, 28 Feb 2004 00:57:21 +0100 Received: from psmrdcex03.psm.pin.safeco.com (Not Verified[12.144.134.38]) by rdcmx1.safeco.com id ; Fri, 27 Feb 2004 15:57:19 -0800 Received: from safeco.com ([168.147.237.20]) by psmrdcex03.psm.pin.safeco.com with Microsoft SMTPSVC(5.0.2195.5329); Fri, 27 Feb 2004 15:57:19 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 MIME-Version: 1.0 Subject: RE: [Caml-list] mingw dll hell Date: Fri, 27 Feb 2004 15:57:19 -0800 Message-ID: <9410EC84C0872141B27A2726613EF45D02A52CEB@psmrdcex01.psm.pin.safeco.com> Thread-Topic: [Caml-list] mingw dll hell Thread-Index: AcP9iwTscVLa7a8XQ5iu71/go/ZJRAAAUYJA From: "HENRIKSON, JEFFREY" To: "Peter Jolly" Cc: X-OriginalArrivalTime: 27 Feb 2004 23:57:19.0631 (UTC) FILETIME=[6F5121F0:01C3FD8D] content-class: urn:content-classes:message Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 mingw:01 henrikson:01 cygwin:01 gdb:01 bug:01 henrikson:01 2004:99 caml-list:01 mingw:01 cygwin:01 gcc:01 -mno-cygwin:01 dependencies:01 bin:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hmm, thank you I didn't know about cygcheck. I am accustomed to using ldd under linux. $ cygcheck test.exe Found: .\test.exe Found: C:\cygwin\bin\test.exe test.exe C:\WINNT\system32\msvcrt.dll C:\WINNT\system32\KERNEL32.dll C:\WINNT\system32\ntdll.dll I'd love to observe the crash, but the program doesn't print the first line and gdb makes the bug go away. Jeff Henrikson -----Original Message----- From: Peter Jolly [mailto:peter@jollys.org]=20 Sent: Friday, February 27, 2004 3:42 PM To: HENRIKSON, JEFFREY Cc: caml-list@inria.fr Subject: Re: [Caml-list] mingw dll hell > One thing I seem to be noticing is that there are fewer errors if I > do not link to libraries that depend on cygwin1.dll. While I can't explain why it worked before, in general it's an extremely bad idea to mix MinGW and Cygwin in the same program. If you're using=20 gcc -mno-cygwin in the build process, you should not be linking to any=20 Cygwin libraries at all. As a simple test, run cygcheck on the generated executable. If it lists both cygwin1.dll and MSVCRT*.DLL among the dependencies, you are almost=20 certain to have problems. ------------------- 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