Mailing-List: contact cygwin-apps-help AT cygwin DOT com; run by ezmlm Sender: cygwin-apps-owner AT cygwin DOT com List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: Question about DOS text file. Date: Thu, 25 Apr 2002 13:59:57 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0002_01C1EC61.7BA52D50" Message-ID: 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
The GCC versio= n 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
bu= ilt by myself can not compile DOS C file correctly.

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

If th= is C program is saved as a DOS text file, my GCC will complain
about l= ine 2.  If this C program is saved as a UNIX text file, compile
i= s 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 G= CC options can
handle the DOS text file format?


Thanks
<= BR>Bernard




Get more fr= om the Web. FREE MSN Explorer download : http://explorer.msn.com

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