Charles Wilson <[EMAIL PROTECTED]> writes:

> On 16 Apr 2001, Felix Natter wrote:
> > > > when I try to compile a simple (n)curses program using cygwin,
> > > > I get lots of "undefined reference"-messages, one for each ncurses function,
> > > > but with a "impl_" prepended (i.e. impl_waddch).
> > 
> > I read this, thanks.
> > But I compiled as you suggest. In fact, the problem also occurs if I
> > compile and link in one step:
> > I saved the following as test_curses.c:
> > #include <curses.h>
> > 
> > int main(int argc, char** argv)
> > {
> >     initscr();
> >     wclear(stdscr);
> >     waddstr(stdscr, "hello world");
> >     wrefresh(stdscr);
> >     getch();
> >     endwin();
> > }
> > 
> > gcc -static -DNCURSES_STATIC -o test_curses.exe test_curses
> > => undefined reference to endwin ...
> > gcc -o test_curses.exe test_curses.c
> > => undefined reference to _imp__endwin ...

sorry, of course I added -lcurses in both cases.
It is notable that the results are exactly the same with or without -lcurses
(or -lncurses)..

--
Felix Natter

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Reply via email to