delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/16/18:57:18

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <394AB08C.6F30E011@carlthompson.net>
Date: Fri, 16 Jun 2000 15:56:12 -0700
From: Carl Thompson <cet AT carlthompson DOT net>
X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686)
MIME-Version: 1.0
To: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: New GCC available for testing (TRY 4) -- fixes include path problem
References: <20000615014501 DOT A14168 AT cygnus DOT com> <20000615235922 DOT A22415 AT cygnus DOT com> <20000616131828 DOT A17545 AT cygnus DOT com> <394A69F7 DOT AD03B52A AT carlthompson DOT net> <20000616151231 DOT A8096 AT cygnus DOT com> <394A89A0 DOT 2564D870 AT carlthompson DOT net> <20000616172758 DOT D10421 AT cygnus DOT com>

Chris Faylor wrote:

> ...

> >I just took another quick look at the way things are now and I
> >noticed another problem.  Some Windows headers are only in the POSIX
> >include directory (such as "windows.h"), but some are only in the
> >MinGW directory (such as "direct.h").  That means, with your latest
> >snapshot, Cygwin programs can't use "direct.h" if they need to!
> 
> Did you look at the contents of direct.h?  It's mingw-specific.  POSIX
> programs use dirent.h.

Actually, it's not MinGW specific, it's Windows / DOS specific.  A
"direct.h" header is also included with VC++ and Borland C++ so it is
standard on the Windows platform.  It defines such functions as
_getdrive().  

If Cygwin programs should only use POSIX headers like "dirent.h" , then none
of the Windows headers should be in the base Cygwin include directory!

My point is that the current header handling and directory structure is
broken for both pure Windows programs and Cygwin programs that use Windows
facilities.  (Granted, it probably will work in most cases).  I can
understand that you don't want to change the directory structure yourself so
please ask Mumit when he returns.  I believe fixing this is the only way to
finally close this issue.  You have already done 90% of the work so it will
be easy for Mumit to finish.  Thank you for all the work you have put into
this.

> cgf

Thank you,
Carl Thompson

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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