Find the answer to your Linux question:
Results 1 to 3 of 3
Is curses.h system dependant? I am trying to compile code for a test OS, and i dont know if i can use curses or not, because I dont know if ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Location
    look out your window
    Posts
    72

    Is curses.h portable?


    Is curses.h system dependant?
    I am trying to compile code for a test OS, and i dont know if i can use curses or not, because I dont know if its system dependant or not.

  2. #2
    Linux User
    Join Date
    Aug 2005
    Location
    Italy
    Posts
    401
    Here is my output about ncurses lib:

    apt-cache show libncurses5
    Package: libncurses5
    Priority: required
    Section: libs
    Installed-Size: 508
    Maintainer: Daniel Jacobowitz <ncurses-maint@debian.org>
    Architecture: i386
    Source: ncurses
    Version: 5.5-2
    Depends: libc6 (>= 2.3.6-6)
    Recommends: libgpmg1
    Filename: pool/main/n/ncurses/libncurses5_5.5-2_i386.deb
    Size: 303752
    MD5sum: 74e34780350aee7f67b4bc84ac341228
    SHA1: c32d4d8709ba72525975315c3f41491c33c711da
    SHA256: 71398e94c2854ba6cf0a012862f1e062bba40bfce34797ce06 1457cb4862ae24
    Description: Shared libraries for terminal handling
    This package contains the shared libraries necessary to run programs
    compiled with ncurses.
    Tag: devel::library, interface::text-mode, role::sw:shlib, uitoolkit::ncurses
    So probably you can compile it on any OS with a standard C library.
    When using Windows, have you ever told "Ehi... do your business?"
    Linux user #396597 (http://counter.li.org)

  3. #3
    Linux Engineer Javasnob's Avatar
    Join Date
    Jul 2005
    Location
    Wisconsin
    Posts
    942
    You can compile ncurses programs as long as you have curses installed; think of ncurses.h as the interface, and ncurses.so (or whatever the object file is) as the implementation.
    Flies of a particular kind, i.e. time-flies, are fond of an arrow.

    Registered Linux User #408794

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •