www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2002/04/25/17:06:06

Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm
Sender: cygwin-apps-owner AT cygwin DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT cygwin DOT com>
List-Help: <mailto:cygwin-apps-help AT cygwin DOT com>, <http://sources.redhat.com/lists.html#faqs>
Mail-Followup-To: cygwin-apps AT cygwin DOT com
Delivered-To: mailing list cygwin-apps AT cygwin DOT com
X-Originating-IP: [192.152.81.236]
From: "Bernard Chow" <Bernard_Chow AT msn DOT com>
To: <cygwin-apps AT cygwin DOT com>
Subject: Question about DOS text file.
Date: Thu, 25 Apr 2002 13:59:57 -0700
MIME-Version: 1.0
Message-ID: <DAV95oWtL7DrkYuXlpp0001db33@hotmail.com>
X-OriginalArrivalTime: 25 Apr 2002 21:00:13.0808 (UTC) FILETIME=[31D37700:01C1EC9C]

------=_NextPart_001_0002_01C1EC61.7BA52D50
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

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 =20
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   =20
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

BernardGet more from the Web.  FREE MSN Explorer download : http://explor=
er.msn.com

------=_NextPart_001_0002_01C1EC61.7BA52D50
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><BODY STYLE=3D"font:10pt verdana; border:none;"><DIV>The GCC versio=
n 2.95.3-5 come with cygwin version 1.3.10 as a package can<BR>compile C =
source file with DOS end-of-line character.&nbsp; However, the GCC <BR>bu=
ilt by myself can not compile DOS C file correctly.<BR><BR>Here is the C =
source file:<BR>1&nbsp;&nbsp; #define ABC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1,\<BR>2&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2,\<BR>3&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3<BR>4&nbsp;&nbsp; <BR>5&n=
bsp;&nbsp; void main()<BR>6&nbsp;&nbsp; {<BR>7&nbsp;&nbsp; }<BR><BR>If th=
is C program is saved as a DOS text file, my GCC will complain<BR>about l=
ine 2.&nbsp; If this C program is saved as a UNIX text file, compile<BR>i=
s OK.<BR><BR>It seems like my GCC compiler can not detect DOS end-of-line=
 (CR/LF).<BR><BR>Is there any flag to set while building the GCC or any G=
CC options can<BR>handle the DOS text file format?<BR><BR><BR>Thanks<BR><=
BR>Bernard<BR><BR><BR></DIV></BODY></HTML><br clear=3Dall><hr>Get more fr=
om the Web.  FREE MSN Explorer download : <a href=3D'http://explorer.msn.=
com'>http://explorer.msn.com</a><br></p>

------=_NextPart_001_0002_01C1EC61.7BA52D50--

- Raw text -


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