This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Problem choosing exe entry point.
- To: Mo DeJong <mdejong at cygnus dot com>
- Subject: Re: Problem choosing exe entry point.
- From: Mumit Khan <khan at NanoTech dot Wisc dot EDU>
- Date: Fri, 6 Jul 2001 00:25:13 -0500 (CDT)
- cc: cygwin at sources dot redhat dot com
On Thu, 5 Jul 2001, Mo DeJong wrote:
> I think I have found a problem with the way Cygwin ld
> picks the executable entry point when both WinMain() and main()
> are available. I would think that passing in the -mwindows flag
> (which gets passed to ld as --subsystem windows) would clear
> things up and link with WinMain(). Instead, Cygwin ld is
> choosing main().
I would consider this a quality of implementation issue rather
than a bug. Having both main and WinMain is rather ambiguous
under most circumstances, and I'm not sure I'd qualify this as
a bug.
Mo, do you have any reason to have both, or do you have a project
that defines both?
Regards,
Mumit
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/