delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/15/11:01:19

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_LN,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <4DA848D5.6050204@bonhard.uklinux.net>
References: <4DA848D5 DOT 6050204 AT bonhard DOT uklinux DOT net>
Date: Fri, 15 Apr 2011 17:00:32 +0200
Message-ID: <BANLkTi=izC_dmN_NxUVzp7fzc5JYMu+gOw@mail.gmail.com>
Subject: Re: Still using gcc 3.4.4 - problem with -lncurses
From: marco atzeri <marco DOT atzeri AT gmail DOT com>
To: cygwin AT cygwin DOT com
Cc: Fergus <fergus AT bonhard DOT uklinux DOT net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Fri, Apr 15, 2011 at 3:32 PM, Fergus  wrote:
> Using cygwin 1.7 and gcc 3.4.4 I have a line in a script
>
> gcc -o myexec -o3 ./my.a -lreadline -lncurses -lm
>
> which has worked since the Dawn of Time. Just now I had to rebuild myexec
> and got an error message
>
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot
> find -lncurses
> collect2: ld returned 1 exit status
>
> Strange because I have
>
> setup.exe -P {variouspackages},ncurses,{morepackages}
>
> as my one-line setup command (also with a long history of nofail working).
> But on inspection I see files and folders
>
> /usr/include/ncursesw NOT /usr/include/ncurses
> /usr/lib/ncursesw* NOT /usr/include/ncurses*
>
> all dated Feb 15. Did I miss some massive re-configuration and re-naming
> then?
>
> Rewriting the gcc line with -lncursesw not -lncurses works.
>
> However ... I'd quite like to keep this line for the simple reason that it
> works in Linux as well as (up to now) Cygwin. I could write a branch but I'd
> prefer to write a link something like
>
> ln -s ncursesw ncurses
>
> under /usr/include/ or something similar but presumably more complicated
> under /usr/lib/.
>
> Have I identified the cause of the breakage (some kind of supersession on or
> about Feb 15)? Have others tripped up? Is there a good cure?


http://cygwin.com/packages/libncurses-devel/libncurses-devel-5.7-18

>
> Thank you.
>
> Fergus
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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