www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-apps-help AT cygwin DOT com; run by ezmlm |
Sender: | cygwin-apps-owner AT cygwin DOT com |
List-Subscribe: | <mailto:cygwin-apps-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin-apps/> |
List-Post: | <mailto:cygwin-apps AT cygwin DOT com> |
List-Help: | <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs> |
Delivered-To: | mailing list cygwin-apps AT cygwin DOT com |
Message-ID: | <3C0E1075.AE2A98C7@yahoo.com> |
Date: | Wed, 05 Dec 2001 07:17:57 -0500 |
From: | Earnie Boyd <earnie_boyd AT yahoo DOT com> |
Reply-To: | CA List <Cygwin-Apps AT cygwin DOT com> |
X-Mailer: | Mozilla 4.77 [en] (WinNT; U) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | Pavel Tsekov <ptsekov AT syntrex DOT com> |
CC: | cygwin-apps AT cygwin DOT com |
Subject: | Re: string.h vs string.h usage |
References: | <3C0E0C4C DOT 73A1750D AT syntrex DOT com> |
Pavel Tsekov wrote: > > Any opinions on this topic ? > > > > > > Btw one thing - I've found many #include <strings.h> in > > > the latest sources - shouldn't this be changed to #include > > > <string.h> ? mingw doesnt have strings.h. Btw It seems that > > > if you have string.h you dont need strings.h (I'm under > > > the impression that string.h include strings.h on linux) > > > > > > Does this sound reasonable ? > > Right, MinGW provides string.h not strings.h because MS doesn't provide strings.h. > > I dunno. Setup builds with -mno-cygwin with FAIK uses all mingw headers, > > so I don't know whether that is needed or not. Thats probably better > > asked on-list :}. > > > Setup, strace, possibly more build with the -mno-cygwin switch picking up the MinGW headers. > Yes but it gives various include paths from cygwin build and newlib > build - > this means that you compile only in this environment (i.e. winsup env). > If you > try only mingw it wont work :) > > However I've fixed that for me locally There should be nothing to fix. If there is then you've done something wrong in the setup or building the program. Using -mno-cygwin should only give you MinGW headers and never the Cygwin headers. The only way I can think of that this would happen is if you also added a -I/usr/include to the gcc build options or if you modified the gcc source and rebuilt it yourself. Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |