delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/23/11:44:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 23 Jul 2001 16:12:44 +0200
From: Kurt Roeckx <Q AT ping DOT be>
To: David Ayliffe <me AT ayliffe DOT com>
Cc: cygwin AT cygwin DOT com
Subject: Re: Probably a very simple problem - hopefully someone will help me
Message-ID: <20010723161244.A5986@ping.be>
References: <000001c112f0$081c2dc0$76be1f3e AT rubberducky>
Mime-Version: 1.0
X-Mailer: Mutt 1.0pre2i
In-Reply-To: <000001c112f0$081c2dc0$76be1f3e@rubberducky>
Resent-From: Q AT ping DOT be
Resent-Date: Mon, 23 Jul 2001 17:22:38 +0200
Resent-To: cygwin AT cygwin DOT com
Resent-Message-Id: <20010723152238 DOT 1746126132 AT dialup DOT planetinternet DOT be>

On Sun, Jul 22, 2001 at 09:51:07PM +0100, David Ayliffe wrote:
> 
> I get these errors when I compile using the command directly below
> 
> $ gcc byte_hacking.cpp
> byte_hacking.cpp: In function 'int main():
> byte_hacking.cpp:20 implicit declaration of function 'int lseek(...)'
> byte_hacking.cpp:22 implicit declaration of function 'int read(...)'
> byte_hacking.cpp:27 implicit declaration of function 'int write(...)'
> byte_hacking.cpp:25 implicit declaration of function 'int close(...)'

They're not errors, they're warnings.

> //Gets records from a MS Access Database
> 
> #include <io.h>
> #include <fcntl.h>
> #include <stdio.h>
> #include <sys\stat.h>

It should be <sys/stat.h>, and you forgot: #include <unistd.h>
which declares all of those functions.


Kurt


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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