Puzzled.
I'm using Fedora FC4, and the ncurses library is version 5.4
Puzzled.
I'm using Fedora FC4, and the ncurses library is version 5.4
Here's what I've found:
- your program works fine on Debian when using curses
- your program works fine when using the ncurses library on NetBSD, but the getyx() macro does not seem to be defined properly. I get the following errors:
/var/tmp//cckfwyCa.o(.text+0x1ca): In function `main':
: undefined reference to `getcury'
/var/tmp//cckfwyCa.o(.text+0x1db): In function `main':
: undefined reference to `getcurx'
Note that the ncurses library does not come installed with NetBSD; you have to install it as a package
- my version of the program works fine on Debian.
However, Debian is not my development environment. I do all of my development on NetBSD; the NetBSD box I have is not networked, so I can't SSH into the Debian box.
[edit]When I compiled the program on NetBSD, I wasn't including ncurses.h. When I did so, the program worked fine. Doing a diff on ncurses.h and curses.h in Debian reveals that the files are the same. ncurses seems to have the exact same interface as curses.[/edit]
Last edited by Yasir_Malik; 12-31-2005 at 03:39 PM.
The interface may be the same, but internal functionality is obviously different. Compiling your program with curses.h and linking to curses on NetBSD does not produce an updating timer as it does using ncurses.