Mail Archives: djgpp/1997/03/06/23:38:21
Gautam N. Lad (gautam AT interlog DOT com) wrote:
: Hi,
: I get these warnings, in my program (which is a C++ programming). Here's the
: errors. I've the right include files, but what gives?
: tb.cpp: In function `void ShowTitle()':
: tb.cpp:1286: warning: implicit declaration of function `int lseek(...)'
: tb.cpp:1296: warning: implicit declaration of function `int read(...)'
: tb.cpp:1331: warning: implicit declaration of function `int close(...)'
These are all declared in unistd.h, which you aren't #including.
If you need to find out which include file declares a particular
function, you can look it up in the info documentation by typing,
for example, this:
info libc a lseek
It will tell you what the function does, which include files you
should use, and sometimes an example of how to use it.
--
George Foot <gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk>
Merton College, Oxford.
- Raw text -