This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: LFTP: Cygwin and setupterm


On Mon, 16 Dec 2002, elfyn-cygwin@mail.exposure.org.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 <ncurses/term.h>
> # include <curses.h>
> #elif defined(HAVE_CURSES_H)
> # include <curses.h>
> # if defined(HAVE_TERM_H)
> #  include <term.h>
> # endif
> #elif defined(HAVE_NCURSES_CURSES_H)
> #include <ncurses/curses.h>
> # if defined(HAVE_NCURSES_TERM_H)
> #  include <ncurses/term.h>
> # endif
> #endif
>
> May not have been the right thing to do but got past that
> problem. Now I got a `undefined reference to `_WinMain@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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]