X-Recipient: archive-cygwin AT delorie DOT 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 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: 1.5.25-15: First steps with ncurses programming: can NOT build Hello_world app References: <557426 DOT 1341 DOT qm AT web33206 DOT mail DOT mud DOT yahoo DOT com> <49AD5A87 DOT 1010506 AT cwilson DOT fastmail DOT fm> <49AD602C DOT 1070605 AT gmail DOT com> <49AD6085 DOT 2070201 AT cwilson DOT fastmail DOT 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT 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/