Browse thread
RE: [Caml-list] mingw dll hell
- HENRIKSON, JEFFREY
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | HENRIKSON, JEFFREY <JEFHEN@S...> |
| 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
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]
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
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