EHLO!

I have a question maybe not directly connected with gcc, but...
A friend asked me if there is some problem with compilation of ncurses 
based programs on g++ (on gcc it's fine). (She works on Debian 2.0)
Here is a simple code:

#include <ncurses.h>
#include <stdio.h>

void main()
{
        chtype znak;    
        initscr();
        znak = mvinch(5,5);
        endwin();
        printf ("%d\n", znak);
}               

Compiled with gcc it works fine; with g++ it dumps a segmentation fault.
Is it g++'s fault or ncurses's?

-- 
____\___\___
(_(\|,|_|,|_  Gassho! [http://dione.ids.pl/~pborys][mr MUA home]
    |   | |.  [teksty o zen,programowaniu,moje sf,xfaq_pl, inne]

Reply via email to