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] |
Other format: | [Raw text] |
Thanks, The problem is solved using the DOS2UNIX utility. Regards, Manoj -----Original Message----- From: Svetlik Michael [mailto:M.Svetlik@ssi-schaefer-peem.com] Sent: Wednesday, August 04, 2004 7:03 PM To: Dimitry Andric; Manoj Verma, Noida Cc: crossgcc@sources.redhat.com Subject: AW: Continuation character inside MACRO > > My first guess would be that this is caused by MS-DOS line endings > (CR+LF), under a Cygwin environment. Some older versions of gcc don't Dimity's right. The compiler quotes the 0x0d of the linefeed pair, and the remaining stray 0x0a lets him bail out. > like this in combination with \ continuation macros. Can you try > converting the source file(s) to Unix line endings (LF only), using > dos2unix or a similar tool, and recompiling? IMHO, the wrong solution. Cygwin knows about 'mount modes', at least 'textmode' and 'binmode'. I don't remember respective meanings - worked with that stuff about 3 years ago, last time - but I think textmode would do the clue. Anyway, a 'mount -h' in the DOS-box should help. > > Note also, that your macro definition is quite dangerous in some > cases, it's better to use parentheses everywhere: > > #define ABC(x) ((x)+(x)) > Agree. BTW, I've attached a small registry file I had on my Winning machine, then. It should give an example how to mount your pseudo-devs without tainting the compiler when working on them. HTH Michael ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |