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 sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-Id: <4.3.1.2.20010104174839.022642d0@pop.ma.ultranet.com> X-Sender: lhall AT pop DOT ma DOT ultranet DOT com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Thu, 04 Jan 2001 17:54:52 -0500 To: Dave Brolley , cygwin AT sources DOT redhat DOT com, gcc AT gcc DOT gnu DOT org From: "Larry Hall (RFK Partners, Inc)" Subject: Re: #including using gcc on Cygwin In-Reply-To: <3A54FC85.9030104@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" At 05:43 PM 1/4/2001, Dave Brolley wrote: >Hi, > >I'm trying to use gcc to compile an application on Cygwin which #includes . In searching my system, I see a tchar.h in /usr/include/mingw32, but the compiler doesn't seem to be finding it. Is it safe for me to add -I/usr/include/mingw32 to my compile options, or is there a more appropriate way to pick up this header? > >BTW, what does mingw32 stand for anyway? :-) > >Thanks, >Dave It may be OK to do this, but it will be plain luck if it works in this case. Mingw32 stands for the Mingw initiative, that seeks to provide a compiler toolset to produce executables that don't rely on cygwin1.dll. See www.mingw.org for more details. This directory exists in Cygwin because the compiler delivered with Cygwin supports cross-compiling to Mingw. To invoke this cross compiler, use the -mno-cygwin flag. If you do so, you should find that tchar.h is found, since the compiler will look at this path for cross compiling purposes. You must make sure that you don't need the POSIX functions only available in Cygwin though if you enable this flag, since you can't have both Cygwin and Mingw together. That's why I said initially that you can try doing what you describe, but if it doesn't work or causes problems, you're on your own!;-) 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 -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple