X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49AD7AF2.6030409@gmail.com>
Date: Tue, 03 Mar 2009 18:46:10 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: 1.5.25-15: First steps with ncurses programming: can NOT build     Hello_world app
References: <557426.1341.qm@web33206.mail.mud.yahoo.com> <49AD5A87.1010506@cwilson.fastmail.fm> <49AD602C.1070605@gmail.com> <49AD6085.2070201@cwilson.fastmail.fm>
In-Reply-To: <49AD6085.2070201@cwilson.fastmail.fm>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Charles Wilson wrote:
> Dave Korn wrote:
>> Charles Wilson wrote:
>>> Alexey Lyubimov wrote:
> 
>>>> $ gcc -otnc -g -Wl,--enable-auto-import tnc.c -lncurses
>>>> /cygdrive/c/windows/temp/ccUqygVy.o: In function `main':
>>>> /cygdrive/e/home/ael/work/ncurses/tnc.c:15: undefined reference to `_stdscr'
>>>> collect2: ld returned 1 exit status
> 
>>   My guess is that Alexey didn't notice a dll-in-use-must-reboot warning on
>> cygncurses-8.dll when running setup.exe, and a reboot might have fixed it.
> 
> Nah.  That scenario might cause a run-time failure, but not a link-time
> failure like the one Alexey described.

  He'd end up with the old DLL but the /new/ import library, wouldn't he?  So
adding -ltinfo might fix the link, but then it would fail to find the right
imports if he had tried running it?

    cheers,
      DaveK

--
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/

