X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49ADE824.9090505@cwilson.fastmail.fm>
Date: Tue, 03 Mar 2009 21:32:04 -0500
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.6.666
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> <49AD7AF2.6030409@gmail.com> <49ADD42E.1070707@cwilson.fastmail.fm> <49ADE7DC.6030205@gmail.com>
In-Reply-To: <49ADE7DC.6030205@gmail.com>
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

Dave Korn wrote:

>   Right; but seeing as he /didn't/ add -ltinfo, he would have ended up with
> exactly the error we saw, wouldn't he?

No, because the headers that came with 5.7-2 had macros that turned his
code 'curscr' into 'ncwrap_curscr()'.  In the briefly released 5.7-1 the
macros turned 'curscr' into '_nc_curscr()'.  So, the only way his object
code would be "looking" for the symbol "_curscr" would be if he was
using the headers from ncurses-5.5-3 or older.  But the headers and
import libraries are distributed in the same package; it's not possible
to have the headers from one release and the import libraries from a
different one.

Unless you do
$ gcc -o foo.o -c foo.c

and then upgrade ncurses-devel, before doing
$ gcc -o foo.exe foo.o -lncurses

But Alexey did the compile and link all in one command.  That's a REALLY
fast setup.exe...

That's why I was confused.  But, 'tis working now, with 5.7-3. So...

--
Chuck


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

