delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/25/18:02:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <3CC87C21.2F7BF179@yahoo.com>
Date: Thu, 25 Apr 2002 17:58:57 -0400
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: Earnie Boyd <Cygwin AT cygwin DOT com>
X-Accept-Language: en
MIME-Version: 1.0
To: Earnie Boyd <Cygwin AT cygwin DOT com>
CC: Bernard Chow <Bernard_Chow AT msn DOT com>
Subject: [Fwd: Question about DOS text file.]

Wrong mail list.

-------- Original Message --------
Subject: Question about DOS text file.
   Date: Thu, 25 Apr 2002 13:59:57 -0700
   From: "Bernard Chow" <Bernard_Chow AT msn DOT com>
     To: <cygwin-apps AT cygwin DOT com>

 The GCC version 2.95.3-5 come with cygwin version 1.3.10 as a package
can
compile C source file with DOS end-of-line character.  However, the GCC
built by myself can not compile DOS C file correctly.

Here is the C source file:
1   #define ABC                1,\
2                                   2,\
3                                   3
4
5   void main()
6   {
7   }

If this C program is saved as a DOS text file, my GCC will complain
about line 2.  If this C program is saved as a UNIX text file, compile
is OK.

It seems like my GCC compiler can not detect DOS end-of-line (CR/LF).

Is there any flag to set while building the GCC or any GCC options can
handle the DOS text file format?


Thanks

Bernard



  ------------------------------------------------------------------------
Get more from the Web. FREE MSN Explorer download :
http://explorer.msn.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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