X-Spam-Check-By: sourceware.org
Message-ID: <443AA212.DF9AB154@dessent.net>
Date: Mon, 10 Apr 2006 11:21:06 -0700
From: Brian Dessent <brian@dessent.net>
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Cygwin backwards compatibility break with WinMain and   GetCommandLine   (was Re: WinMain() not getting cl...)
References: <20060404184447.GA4824@tela.daveroth.dyndns.org>  <20060410013414.GA20557@trixie.casa.cgf.cx> <Pine.GSO.4.63.0604100927270.20193@access1.cims.nyu.edu>  <20060410173850.GA19752@trixie.casa.cgf.cx> <Pine.GSO.4.63.0604101352460.20193@access1.cims.nyu.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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/

