PDA

View Full Version : conio.h error


rx_b10
March 10th, 2009, 05:57
hi all,
when i compile using #include <conio.h>

there was an error " error: conio.h : no such file or directory"

why this is happen ??

http://img183.imageshack.us/img183/283/errorlat1.jpg (http://www.imagehosting.com/)

thx u

trev
March 10th, 2009, 06:35
FreeBSD has no such include file (sounds like a DOS/Windows file to me). Try man 3 ncurses instead.

SirDice
March 10th, 2009, 10:22
It is an old DOS header file

conio.h is a header file used in old MS-DOS compilers to create text user interfaces, however, it is not part of the C programming language, the C standard library, ISO C or required by POSIX.
http://en.wikipedia.org/wiki/Conio.h

rx_b10
March 12th, 2009, 04:55
hi all, thx u for reply
i understand now.

how to know all function/method that can be used from include <....> ??

thx u

SirDice
March 12th, 2009, 09:40
Most of the include files have man pages, man stdio i.e.

trev
March 12th, 2009, 13:53
You can also check out:


ls -l /usr/include/
ls -l /usr/include/sys/


then use the man pages.