AW: parse error before `{', stray '\' in program

Claus Gindhart Claus.Gindhart at kontron.com
Thu Apr 10 22:31:59 EST 2003


Yet another proposal:

Install a CVS-Server somewhere on a Linux machine.
When You check out Your sources to Windows, You have \r\n
When You check out Your sources to Linux, You have \n

So You can edit on every platform with the native end-of-line
format. And, anyway, it gives you a lot of advantages
in concurrent programming.

I am not a fan of the dos2unix, and unix2dos tools.
dos2unix is o.k., but unix2dos can also create files
with \r\r\n line feeds, if you use it unintentionally
twice on the same file. If you dont want CVS, i wuld
recommend UltraEdit for editing and DOS/UNIX and
vice versa conversion.


> -----Original Message-----
> From: Omanakuttan [mailto:omanakuttan at tataelxsi.co.in]
> Sent: Donnerstag, 10. April 2003 14:23
> To: Graf Alex
> Cc: 'linuxppc-embedded at lists.linuxppc.org'
> Subject: Re: AW: parse error before `{', stray '\' in program
>
>
>
> > I would use Unix file formats if i can!
> > The problem is: We have developers on Windows. They are
> working with the
> > same library as we are. Visual Studio produce this f...
> <cr><lf> or ^M or
> > \r\n. And we are generatin code from Rose. This cause the
> same problems.
> > Visual Studio has no problems with \n, but if someone save
> the file with
> > Visual Studio, the problem occurs. (The same is with Rose)
> > gcc 3.2 on host has no problem with this <cr><lf>. Is there
> allready a cross
> > compiler (ppc_8xx-gcc) with verision 3.2? Or how difficult
> is it to build a
> > new compiler?
> Why don't you use dos2unix command ?
>
>
>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-embedded mailing list