This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Compiler Issue


>-----Original Message-----
>From: surya prakash [mailto:suryaprakash@multitech.co.in]
>Sent: 09 November 2001 10:59
>To: crossgcc@sourceware.cygnus.com
>Subject: Compiler Issue
>
>
>Hi,
>
>Does 'GCC Cross compiler' won't support  ' \ ' at the end of each line
>in  the definition of a multi-line macro ?  Actually I am getting parse
>error for each occurrence of ' \ ' in marco definitions.

  You must be using gcc under cygwin, and the source code must have PC-style
CRLF line ends instead of unix style LF-only.  Gcc being a Unix program, it
expects to find only an LF after the '\'; any other text would be an error,
and it doesn't know that a CR could be there.

  To solve it, either convert the line endings in your source code, or use
the cygwin mount command to make a textmode mountpoint for the source.  This
second solution is usually a good deal easier :)


   hth,
     DaveK
-- 
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]