Mail Archives: cygwin-apps/2002/04/25/17:06:06
------=_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. 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 #define ABC &n=
bsp; 1,\<BR>2 =
&=
nbsp; &n=
bsp; 2,\<BR>3 =
&=
nbsp; &n=
bsp; 3<BR>4 <BR>5&n=
bsp; void main()<BR>6 {<BR>7 }<BR><BR>If th=
is C program is saved as a DOS text file, my GCC will complain<BR>about l=
ine 2. 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 -