Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C804DE20@serv-075.icon-germany.local>
From: Heribert Dahms <heribert_dahms@icon-scm.com>
To: "'Kurt Roeckx'" <Q@ping.be>
Cc: cygwin@cygwin.com
Subject: RE: Probably a very simple problem - hopefully someone will help 
	me
Date: Mon, 23 Jul 2001 23:44:59 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain

Hi Kurt,

almost! According to Appendix A of Richard W. Steven's famous
"Advanced Programming in the UNIX Environment" (a "must have" IMHO)
lseek needs including <sys/types.h> before <unistd.h>!

Bye, Heribert (heribert_dahms@icon-gmbh.de)

> -----Original Message-----
> From:	Kurt Roeckx [SMTP:Q@ping.be]
> Sent:	Monday, July 23, 2001 17:23
> To:	cygwin@cygwin.com
> Cc:	cygwin@cygwin.com
> Subject:	Re: Probably a very simple problem - hopefully someone will
> help me
> 
> 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/

--
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/

