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: <20000911162933.20820.qmail@web118.yahoomail.com> Date: Mon, 11 Sep 2000 09:29:33 -0700 (PDT) From: Earnie Boyd Subject: Re: [Mingw-users] gcc not handling quoted strings To: Adam Fedor , mingw-users AT lists DOT sourceforge DOT net Cc: cygwin users MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- Adam Fedor wrote: > I'm new to using MingW, but I'm still not sure why this won't work when > QUOTED is defined on the command line. MingW's gcc seems to strip the > quotes off the string: > > -------- testit.c---------- > #ifndef QUOTED > #define QUOTED "string" > #endif > > static char *string = QUOTED; > ---------------------------- > > Here I'm running the MingW gcc compiler on top of cygwin (i.e. using > cygwin's bash): > > BASH.EXE-2.03$ type gcc > gcc is hashed (//c/gcc-2.95.2/bin/gcc) > BASH.EXE-2.03$ gcc -v > Reading specs from > c:\gcc-2.95.2\bin\..\lib\gcc-lib\i386-mingw32\2.95.2\specs > gcc version 2.95.2 19991024 (release) > BASH.EXE-2.03$ gcc -c testit.c > BASH.EXE-2.03$ gcc -DQUOTED=\"astring\" -c testit.c > testit.c:5: `astring' undeclared here (not in a function) > BASH.EXE-2.03$ /usr/bin/gcc -DQUOTED=\"astring\" -c testit.c > BASH.EXE-2.03$ > This is Cygwin related problem. It has been a known problem with Cygwin for years. I know that the Cygwin developers have recently revisited the issue and some changes were made in hopes of correcting this problem. Please follow up with this on the Cygwin list. Cheers, ===== --- --- Earnie Boyd: __Cygwin: POSIX on Windows__ Cygwin Newbies: __Minimalist GNU for Windows__ Mingw32 List: Mingw Home: __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com