delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/03/11:42:57

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: <49AD602C.1070605@gmail.com>
Date: Tue, 03 Mar 2009 16:51:56 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
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>
In-Reply-To: <49AD5A87.1010506@cwilson.fastmail.fm>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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:
> Alexey Lyubimov wrote:
>> Unfortunately, things went worse :-(
>> After I've upgraded to GCC 3.4.4-999 and libncurses9-5.7-2 I get the following error instead of a ld's warning (see my first message in this thread for the reference):
>>
>> $ 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
> 
> The only way this could've happened is if you compiled tnc.c with the
> 5.5-3 headers (that is, the ones matching libncurses8) but tried to link
> against libncurses9 (e.g. 5.7-1, 5.7-2, or 5.7-3).  However, because the
> link libraries and header files are all distributed together in one
> package (libncurses-devel), AND because you compiled and linked all at
> once in the same command, I'm at a loss to explain what happened.

  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.

  Erk.  I wonder what happens if you update, it adds a file to the
rename-on-reboot list, then update again - this time without a shell (or
whatever) running so that it goes ahead and installs the even-newer version
successfully.  I suspect a reboot might bring auto-downgrade in its wake :-(
not good.

  Alexey, if this happens, you might need to reinstall libncurses.  If you
haven't rebooted yet, is there a file called "wininit.ini" in your \WINDOWS
folder?  Or any file matching "*.dll.new" in /bin?

    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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019