Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 17 Dec 2002 02:12:54 -0300 (E. South America Standard Time) From: =?ISO-8859-1?Q?Fr=E9d=E9ric_L=2E_W=2E_Meunier?= <0 AT pervalidus DOT net> To: cygwin AT cygwin DOT com Subject: RE: LFTP: Cygwin and setupterm In-Reply-To: <293580-22002122173573899@M2W042.mail2web.com> Message-ID: References: <293580-22002122173573899 AT M2W042 DOT mail2web DOT com> X-X-Sender: fredlwm AT fastmail DOT fm MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 16 Dec 2002, elfyn-cygwin AT mail DOT exposure DOT org DOT uk wrote: > The setupterm() function lives in the ncurses package > (/usr/include/ncurses/term.h). The problem happens in the if pre-processor > clause on line 26 of lftp_tinfo.cc. I got around that by changing the order > and switching an if to an elif statement like this: > > #if defined(__CYGWIN__) > # include > # include > #elif defined(HAVE_CURSES_H) > # include > # if defined(HAVE_TERM_H) > # include > # endif > #elif defined(HAVE_NCURSES_CURSES_H) > #include > # if defined(HAVE_NCURSES_TERM_H) > # include > # endif > #endif > > May not have been the right thing to do but got past that > problem. Now I got a `undefined reference to `_WinMain AT 16'' > error, probably because I dont have libsup++ installed > though. I don't have libsupc++. I'm using the latest gcc2. I think the right fix was to make the /usr/include/term.h symlink, which for some reason: 1- Isn't in ncurses 5.2-8 or 2- Is removed when you uninstall libtermcap -- 0 AT pervalidus.{net, {dyndns.}org} -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/