Display timer same time as input

This is a discussion on Display timer same time as input within the Linux Programming forums, part of the Platform Specific Boards category; Puzzled. I'm using Fedora FC4, and the ncurses library is version 5.4...

  1. #16
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,535
    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 02: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.

Page 2 of 2 FirstFirst 12
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, 08:12 PM
  2. Need help with time
    By Gong in forum C++ Programming
    Replies: 7
    Last Post: 01-11-2007, 01:43 PM
  3. need help in time zone
    By Gong in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2007, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21