Pranita S wrote:
>
> Hi,
>
> We are currently porting a product that runs
> on NT to Linux.
> We use CVS as our source control system.
>
> The problem is :
> when we get a file on Linux it has \r\n as a
> newline character.
> If we have a muilt-line macro like
> #defined xyz \
> abc \
> pqr
>
> Then the gcc compiler (2.92.2) gives error as :
> stray '\' in program
>
> We do not want to write the macro on one-line as
> it is not readable. Also, we do not want to have
> single line for Linux and Multi-line for NT.
>
> Our guess is that it is probably due to \r .
Use dos2unix to strip the extra carriage returns.
> How do we get rid of \r on Linux ? (we are
> using multi-line macros in many files.)
> But, then it should work on NT also.
Window Wordpad handles the file fine. Mode editors
for development tools do too.
(Borland and MSVC++, Verilog, VHDL editor I've tried)
The real test is the compiler you use in Winblows.
Some still don't like linefeed only file, but
most are OK. Try a simple hello-world.c created
in linux w/o \r's and try compiling it with
youe Winblows compiler.
-Thomas
_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list