This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Probably a very simple problem - hopefully someone will help me
- To: David Ayliffe <me at ayliffe dot com>
- Subject: Re: Probably a very simple problem - hopefully someone will help me
- From: Kurt Roeckx <Q at ping dot be>
- Date: Mon, 23 Jul 2001 16:12:44 +0200
- Cc: cygwin at cygwin dot com
- References: <000001c112f0$081c2dc0$76be1f3e@rubberducky>
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/