Linux Header Files (c programming)

R. David Whitlock ryandav at u.washington.edu
Tue Feb 15 11:49:29 PST 2000


Well, I don't know about the rest of that stuff, but to figure out if a
file is present on your computer, you can (as root) run updatedb, wait 10
seconds, and then type "locate filename" and you'll get everything that
contains that string in the name.  Or you can go to the top level
directory where the file might be and use some form of the "find" command
(I think something like "find -name filename -print"...) Check the man
page for details...

Later,
 David





On Tue, 15 Feb 2000, Benjamin Honsinger wrote:

> Hi people! How do I find out if I have a certain header file on my computer? I
> am trying to compile a program that uses header files like termios.h, fcntl.h,
> sys/stat.h and sys/types.h
> I don't know if these are standard header files that are on my computer or not.
> I don't think that termios.h is on my computer, because I get the following
> errors.
> [benh at mandrake prgm]$ gcc openserialport.c
> openserialport.c: In function `OpenSerialPort':
> openserialport.c:28: `termios' undeclared (first use in this function)
> openserialport.c:28: (Each undeclared identifier is reported only once
> openserialport.c:28: for each function it appears in.) 
> openserialport.c:28: parse error before `newtio' 
> openserialport.c:42: `newtio' undeclared (first use in this function)
> [benh at mandrake prgm]$
> Thanks in advance!
> 	- Benjamin - 
> PS If you're really feeling nice, ask me to send you openserialport.c so you
> can help me out with writing it....
> 



More information about the Linux mailing list