On Thu, Nov 16, 2000 at 08:08:25PM +0100, Christian Stalp wrote:
> Das Beispiel ist wie folgt:
> 
> #include<ncurses.h>
> #include<stdio.h>
> 
> void main(void)
> {
>   int i;
>   initscr();
>   cdbreak();
>   nodelay(stdscr, TRUE);
>   keypad(stdscr, TRUE);
>   clear();
>   do
>   {
>     addstr("\n\n Bla bla ");
>     }while (getch()== ERR);
>   endwin();
> }
> 
> 
> Die Fehlermeldungen sind aber leider immer noch die Gleichen.

Bei mir nicht:

C++/ncurses_test.c: In function `main':
C++/ncurses_test.c:5: warning: return type of `main' is not `int'
/tmp/ccMc4HbZ.o: In function `main':
/tmp/ccMc4HbZ.o(.text+0xc): undefined reference to `cdbreak'
collect2: ld returned 1 exit status

Mit
gcc ncurses_test.c -lncurses

cdbreak() gibt es weder in  ncurses.h noch in stdio.h. 
Das ist wohl der Punkt...

> 
> Gruss Christian
> 
> -- 
-- 

 \|/
    t(h)ree
---------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an