delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/06/23:38:21

From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: What are these warning? How do I fix them?
Date: 7 Mar 1997 02:21:10 GMT
Organization: Oxford University
Lines: 24
Message-ID: <5fnu2m$pgq@news.ox.ac.uk>
References: <5fnmh9$ib3 AT news DOT interlog DOT com>
NNTP-Posting-Host: mc31.merton.ox.ac.uk
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019