LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Where is curses.h and semun.h (https://www.linuxquestions.org/questions/programming-9/where-is-curses-h-and-semun-h-277344/)

DavidW567 01-13-2005 10:43 AM

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

Hko 01-13-2005 11:57 AM

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".


All times are GMT -5. The time now is 09:29 AM.