Cygwin backwards compatibility break with WinMain and GetCommandLine (was Re: WinMain() not getting cl...)

Brian Dessent brian@dessent.net
Mon Apr 10 18:52:00 GMT 2006


Igor Peshansky wrote:

> If GetCommandLine lives in libcygwin.a, then programs linked on older
> versions of Cygwin will not link that function in, and thus won't work
> with the new DLL.  Programs linking with the new version of Cygwin will
> have that function, but due to API changes, may not work with older DLLs.
> Or am I missing something?

It should work out like this:

Linked against  <1.5.20, Run against >=1.5.19:
     calls kernel32's GCL() and won't work

Linked against  <1.5.20, Run against  <1.5.19:
     calls kernel32's GCL() but the win environment exists, success
     
Linked against >=1.5.20, Run against any version:
     calls libcygwin's static GCL(), which works in any circumstance

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list