[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mingw32, unistd.h and my program
From: |
Ulrich Eckhardt |
Subject: |
Re: Mingw32, unistd.h and my program |
Date: |
Thu, 20 Oct 2005 07:08:28 +0200 |
User-agent: |
KNode/0.8.2 |
Please set a follow-up next time. Also consider posting to
comp.lang.learn.c-c++.
Al-Burak wrote:
> I have a class that uses the file I/O functions in unistd.h such as
> 'access( const char*, F_OK )' and others. When compiling under UNIX or
> Cygwin there is no problem, but under Mingw this functions are not even
> recognized by the compiler when it displays
> 'gnu_io.cpp:10: error: `F_OK' undeclared (first use this function)'
> 'gnu_io.cpp:10: error: `access' undeclared (first use this function)'
Those functions are not part of C but one of the various Unix APIs. MingW
only provides a win32 API in addition to the standard APIs though.
Uli
--
http://gcc.gnu.org/faq.html
http://parashift.com/c++-faq-lite/