Hi,
On Windows 2000, perl 5.8.8 (built using the MinGW port of gcc and dmake).

I've been messing about (in a very basic way) with PDCurses.

I have an Inline::C script (PDLCurses.pl) that contains a number of
functions including this one:

-------------------------------
SV * wrap_isendwin() {
    bool x = isendwin();
    if(x) return newSViv(1);
    return newSViv(0);
}
------------------------------

The script won't even compile - producing the error:

PDCurses_a355.o:PDCurses_a355.c:(.text+0x117): undefined reference to `sp'

If I remove (or comment out) that function everything is fine. In a C
program (using the very same includes and library) I can do:

-------------------------------
bool b;
.
.
b = isendwin();
printf("isendwin: %d", b);
-------------------------------

so I'm quite puzzled as to what the problem is. Is it something to do with
the "bool" type being used in an Inline::C environment ?

Appreciate any advice/suggestions.

Cheers,
Rob

Reply via email to