Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-Id: <4.3.2.20000331102021.00ba1660@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Fri, 31 Mar 2000 10:38:38 -0500 To: Jimen Ching , "cygwin AT sourceware DOT cygnus DOT com" From: "Larry Hall (RFK Partners, Inc)" Subject: Re: missing prototypes in io.h In-Reply-To: References: <200003310353 DOT VAA02386 AT hp2 DOT xraylith DOT wisc DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 02:14 AM 3/31/00, Jimen Ching wrote: >On Thu, 30 Mar 2000, Mumit Khan wrote: > >I'm confused -- io.h has nothing to do with Win32 API. Cygwin provides an > >io.h that is Cygwin specific, and Mingw provides one that is MS runtime > >specific, and neither is needed if your code uses Win32 API. > >Why don't you tell us what you're looking for, and we can go from there. > >I wrote a program that uses the cygwin UNIX layer. I need to link this >application to a library that was written for Win32. > >My program compiles with cygwin, no problems. When I tried to compile the >library using cygwin, it includes io.h and wants the 'access' function >prototype. But io.h (non-mingw32 version) has almost nothing in it. > >I'm compiling the source of both without the mingw32 option. Thus, gcc >does not look into the mingw32 header directory. Am I supposed to compile >the library using mingw32, and my program with non-mingw32? I was under >the impression that I can write an application that uses both the Win32 >API _and_ the cygwin UNIX layer. But the header files seem to stand in >the way... io.h is a Windows/DOS concoction. Look for access() in the Cygwin headers and use that for non-Windows compilers (I don't remember the header file it comes from off the top of my head...) Larry Hall lhall AT rfk DOT com RFK Partners, Inc. http://www.rfk.com 118 Washington Street (508) 893-9779 - RFK Office Holliston, MA 01746 (508) 893-9889 - FAX (508) 560-1285 - cell phone -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com