[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ncurses segmentation fault



On Mon, 12 Oct 1998, Ingo Brueckl wrote:

> Package: ncurses3.4
> Version: 1.9.9g-8.8
> 
> The following program, compiled with egcs 1.0.3, causes a segmentation
> fault at the mvwinch statement:
> 
> #include <curses.h>
> int main ()
> {
>   WINDOW *win;
>   initscr();
>   refresh();
>   win = newwin(0, 0, 10, 10);
>   getch();
>   chtype r = mvwinch(win, 1, 1);
>   getch();
>   endwin();
> return 0;
> }
> 
> I'm using Debian 2.0.
> 
> Any ideas?

Do you not need to include stdio.h for getch?

Matthew

-- 
Elen sila lumenn' omentielvo

Steward of the Cambridge Tolkien Society
Selwyn College Computer Support
http://www.geocities.com/Area51/Chamber/8841/
http://www.cam.ac.uk/CambUniv/Societies/tolkien/
http://pick.sel.cam.ac.uk/


Reply to: