X-Recipient: archive-cygwin AT delorie DOT 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 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 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> <49AD7AF2 DOT 6030409 AT gmail DOT com> <49ADD42E DOT 1070707 AT cwilson DOT fastmail DOT fm> <49ADE7DC DOT 6030205 AT gmail DOT 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 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 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/