delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/12/09:10:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <20001012130924.16915.qmail@web115.yahoomail.com>
Date: Thu, 12 Oct 2000 06:09:24 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Subject: Re: [BUG] Multi-line macros in gcc broken with CR/LF
To: MORB <MORB AT CdBSSoftware DOT net>, cygwin AT sources DOT redhat DOT com
MIME-Version: 1.0

--- MORB <MORB AT CdBSSoftware DOT net> wrote:
> Hi,
> 
> I installed the latest cygwin release (1.1.4) yesterday.
> 
> I'm trying to compile a cygwin to amigaos cross gcc, but I have a
> problem.
> 
> I don't know if it has been already reported/corrected, so I report it
> anyway.
> 
> It seems that multi line macros don't works in gcc if the source is in
> CR/LF format, rather than in LF format.
> 
> Here is an example:
> 
> #define a=b; \
> 	e=f;
> 
> int main()
> {
> 
> }
> 
> It compiles properly if the source is in LF format, but if it's in CR/LF
> format, it fails with the following errors:
> 
> bug.c:2: 'f' undeclared here (not in a function)
> bug.c:2: warning: data definition has no type or storage class
> 

And what would you expect GCC to do on UNIX if the file contained a \r\n line
ending?  When installing you've obviously chosen that you wanted to use UNIX
style line endings.  Since you've chosen you wanted to UNIX style line endings
then you *must* use UNIX style line endings.

Cheers,

=====
Earnie Boyd
mailto:earnie_boyd AT yahoo DOT com

---         <http://earniesystems.safeshopper.com>         ---
--- Cygwin: POSIX on Windows <http://gw32.freeyellow.com/> ---
---   Minimalist GNU for Windows <http://www.mingw.org/>   ---

__________________________________________________
Do You Yahoo!?
Get 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

- Raw text -


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