LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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


Hi

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.

David
 
Old 01-13-2005, 11:57 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: ubuntu
Posts: 2,530

Rep: Reputation: 108Reputation: 108
For "curses.h" you need to install:
ncurses-devel-5.4-59.i586.rpm
And for curses to work, of course also:
ncurses-5.4-59.i586.rpm

"semun.h" is part of the program from the book itself. Your need to create it yourself or download it (from wrox.com?). 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".
 
  


Reply


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 06:24 AM
Using Curses in shell scripts subu_s Programming 3 12-02-2004 09:24 AM
curses and some terminals dimm_coder Programming 9 05-10-2004 11:04 AM
curses and iostream irfanhab Programming 3 05-10-2004 10:14 AM
Curses nitinkatageri Linux - General 2 08-18-2003 04:58 AM


All times are GMT -5. The time now is 05:02 AM.

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