Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-13-2005, 11:43 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 17

Rep: Reputation: 0
Where is curses.h and semun.h


I am implementing code which according to my book "Linux programming 3rd ed, by Wrox" needs curses.h (for beep()) and semun.h.

I am using SUSE 9.1.

GCC gives the error message that these are missing, which they are.

Should I try to install them, or should I be using other header files.

Old 01-13-2005, 12:57 PM   #2
Senior Member
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 110Reputation: 110
For "curses.h" you need to install:
And for curses to work, of course also:

"semun.h" is part of the program from the book itself. Your need to create it yourself or download it (from Have it in the same directory as the program, include it with double quotes ("#include "semun.h") instead of < and >, and compile with gcc's option "-lncurses" or "-lcurses".


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
do I need curses? jake_01 Programming 1 04-28-2005 07:24 AM
Using Curses in shell scripts subu_s Programming 3 12-02-2004 10:24 AM
curses and some terminals dimm_coder Programming 9 05-10-2004 12:04 PM
curses and iostream irfanhab Programming 3 05-10-2004 11:14 AM
Curses nitinkatageri Linux - General 2 08-18-2003 05:58 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration