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
RE: [Caml-list] mingw dll hell
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-02-27 (23:57)
Subject: RE: [Caml-list] mingw dll hell
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

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] 
Sent: Friday, February 27, 2004 3:42 PM
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 
gcc -mno-cygwin in the build process, you should not be linking to any 
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 
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