Mail Archives: cygwin-developers/1998/06/23/07:27:21
>From: Michal Kouril <michal AT dkslwz DOT cr DOT usgs DOT gov>
>Date: Tue, 23 Jun 1998 08:35:31 -0500
>
>Problem:
>I have application that calls my DLL compiled using gnu-win32.
>My Dll tries to use functions from cygwinb19 but dll_crt0_1 function was
>not called by exe (I can't recompile exe).
>So I have to call dll_crt0_1 in my DLL. It does not work because
>in the end of dll_crt0_1 is exit and it exists the whole cygwinb19.dll.
>
>Solution:
>I suggest to put the following condition in the end of dll_crt0_1.
>
>dll_crt0_1 (per_process *uptr)
>...
>if (u->main)
> exit (u->main (argc, argv, *u->envptr));
>}
That seems like a reasonable thing to do. I've added this to the sources.
-Chris
- Raw text -