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

From: gautam AT interlog DOT com (Gautam N. Lad)
Newsgroups: comp.os.msdos.djgpp
Subject: What are these warning? How do I fix them?
Date: Fri, 07 Mar 97 00:15:44 GMT
Organization: InterLog Internet Services
Lines: 42
Message-ID: <5fnmh9$ib3@news.interlog.com>
NNTP-Posting-Host: ip93-42.tor.interlog.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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(...)'

Here's my list of #include's

#include <string.h>
#include <stdio.h>
// #include <ctype.h>
#include <stdlib.h>                            
#include <conio.h>
#include <grx20.h>
#include <dos.h>
#include <float.h>
// #include <pc.h>
#include <time.h>
#include <fcntl.h>
#include <io.h>
#include <math.h>

Now, what is wrong here?  Although my program works properly, I detest having 
'warnings' in my compiles (who doesn't).

BTW, I'm not using any external C++ libraries.

Bye!

****************************************************
* Gautam N. Lad                                    *
*--------------------------------------------------*
*                                                  *
* E-Mail	: gautam AT interlog DOT com              *
* Website	: http://www.interlog.com/~gautam  *
*                                                  *
* OS/2, DOS/Windows, Graphics Gallery, Software,   *
* Links, Rayzor Editor/2, POV-Ray,  and more.      *
****************************************************

- Raw text -


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