Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
From: Chris Faylor <cgf@cygnus.com>
Date: Sun, 18 Jun 2000 20:57:53 -0400
To: cygwin@sourceware.cygnus.com
Cc: dbely@mail.ru
Subject: Re: gcc and macro expansion
Message-ID: <20000618205753.C10258@cygnus.com>
Reply-To: cygwin@sourceware.cygnus.com
Mail-Followup-To: cygwin@sourceware.cygnus.com, dbely@mail.ru
References: <8zw2eqj4.fsf@mail.ru>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2i
In-Reply-To: <8zw2eqj4.fsf@mail.ru>; from dbely@mail.ru on Sun, Jun 18, 2000 at 11:29:51PM +0400

You'd probably get more answers if you posted this to a gcc mailing list
like gcc@gnu.org.  It's likely that what you're seeing is not cygwin-specific
but is rather due to gcc design.

cgf

On Sun, Jun 18, 2000 at 11:29:51PM +0400, Dmitry Bely wrote:
>I am trying to use STLport (www.stlport.org) with cygwin/gcc 2.95.2 and
>have found the very strange problem. Here is the very simplified example:
>
>[--- test.cpp ---]
>#define INC_PATH //E/Cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/mingw32
>#define MAKE_INCLUDE(file) <INC_PATH/file>
>#include MAKE_INCLUDE(ctype.h)
>[--- end of test.cpp ---]
>
>MAKE_INCLUDE(ctype.h) is expanded as
><  / ctype.h > !!!!
>
>If I define INC_PATH as 
>#define INC_PATH E:/Cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/mingw32
>
>MAKE_INCLUDE(ctype.h) is expanded as
>< E:/Cygnus/cygwin-b20/H- 1 -cygwin32/ 1 -cygwin32/include/mingw32 / ctype.h >
>
>Does anybody has an idea why this happens? I have tried other compilers
>(e.g. Watcom), and they work as expected:
>
><E:/Cygnus/cygwin-b20/H-i586-cygwin32/i586-cygwin32/include/mingw32/ctype.h>
>
>Help! It's the real showstopper for me :-((((
>
>Hope to hear from you soon,

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

