Thread: Display timer same time as input

  1. #16
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Puzzled.
    I'm using Fedora FC4, and the ncurses library is version 5.4

  2. #17
    Registered User
    Join Date
    Sep 2003
    Posts
    224
    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.

  3. #18
    Registered User
    Join Date
    Sep 2003
    Posts
    224
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need some help with C program writing
    By The_PC_Gamer in forum C Programming
    Replies: 9
    Last Post: 02-12-2008, 09:12 PM
  2. Need help with time
    By Gong in forum C++ Programming
    Replies: 7
    Last Post: 01-11-2007, 02:43 PM
  3. need help in time zone
    By Gong in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2007, 04:44 AM
  4. About aes
    By gumit in forum C Programming
    Replies: 13
    Last Post: 10-24-2006, 03:42 PM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM