Click to See Complete Forum and Search --> : programming in linux


bigSteve
06-07-2003, 12:54 PM
Hi All,

I am having problems compiling some C programs that use the header file conio.h. My Linux install cannot locate this file when I try to compile it with gcc or g++.

Q. How do I locate the path used for the include files and how do I add conio.h to this path ?

regards,

bigSteve

evac-q8r
06-07-2003, 01:14 PM
in gcc put in this option
gcc -I/directory/containing/headerfile -o objectfile sourcefile.c

The header is probably not in the same directory as the source file. If it were you should not have any problems. Make sure the code in the source file is
#include "conio.h"
with quotes and not slanted brackets. I am assuming that the header file is not a standard one usually located in /usr/include/.

EVAC

jscott
06-07-2003, 05:25 PM
GNU gcc doesn't include conio.h -- it's not ANSI.

In fact it's mainly for MS-DOS console access...

From conio.h

<snip>
Direct MSDOS console input/output.
</snip>

What are you trying to do?

siqe
06-07-2003, 09:59 PM
the functionality of conio.h is in curses.h. But its alot to fool with depending on what you want to do. if you're looking for color look at this old post http://www.justlinux.com/forum/showthread.php?s=&threadid=47164&highlight=color+text

bigSteve
06-08-2003, 10:23 AM
A big thankyou to you all !

Does anyone know any good links for programming in linux (C/C++) ??

bigSteve