[Patch] Loading cygwin1.dll from MinGW and MSVC

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Mon Jun 6 21:25:00 GMT 2005


On Mon, Jun 06, 2005 at 05:15:13PM -0400, Christopher Faylor wrote:
>On Mon, Jun 06, 2005 at 05:12:02PM -0400, Igor Pechtchanski wrote:
>>On Mon, 6 Jun 2005, Christopher Faylor wrote:
>>
>>> On Mon, Jun 06, 2005 at 04:42:30PM -0400, Christopher Faylor wrote:
>>> >On Mon, Jun 06, 2005 at 04:09:13PM -0400, Igor Pechtchanski wrote:
>>> >I guess you could do it that way.  It would look more transparent to the
>>> >end user if you did.  You'd still have to make it clear that this has to
>>> >happen first thing in the main() function or you could suffer problems
>>> >with automatic initialization or constructors.
>>>
>>> Actually, if you do it that way, there's no reason to pass in main()
>>> since the DLL already knows how to find it.
>>
>>True, provided you're not doing this from a console application which uses
>>WinMain (but then the arguments will all be different as well).
>
>Actually, nevermind.  Cygwin only knows the address of main() in true cygwin
>routines.

s/true cygwin routines/true cygwin programs/

cgf



More information about the Cygwin-patches mailing list