www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4BF18C83.3030305@gmail.com> |
Date: | Mon, 17 May 2010 19:35:47 +0100 |
From: | Dave Korn <dave DOT korn DOT cygwin AT gmail DOT com> |
User-Agent: | Thunderbird 2.0.0.17 (Windows/20080914) |
MIME-Version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: NCurses and Cygwin |
References: | <68DC5D2BAA4B4BCE8AA0BD3730104D24 AT paikea> |
In-Reply-To: | <68DC5D2BAA4B4BCE8AA0BD3730104D24@paikea> |
X-IsSubscribed: | yes |
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 |
On 17/05/2010 19:06, Luis Vital wrote: > I just installed NCurses under Cygwin. > Looking at the file list after the instalation I see that I have: > > /usr/include/curses.h > /usr/include/ncurses.h > etc. The real question is how these got there. They aren't part of any Cygwin package. They must have been there already, for some reason. You should probably just get rid of them. > /usr/include/ncurses/curses.h > /usr/include/ncurses/ncurses.h > etc. > > If I compile using #include <ncurses.h> I got errors but if I > compile using #include "ncurses/ncurses.h" I don't get errors and the > programs work fine. > > Nevertheless all the examples use #include <ncurses.h> so this should > work fine. Add "-I /usr/include/ncurses" to your compile commands. I'm not sure why the layout is a bit different between Cygwin and Linux, I guess it's just one of those things. If you check the cygwin-specific docs for the package (/usr/share/doc/Cygwin/ncurses.README), you'll see it says to use the -I option. cheers, DaveK -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |