cpp:s handling of \-CR-LF continuation lines
Niels Möller
nisse@lysator.liu.se
Wed Jan 12 04:17:00 GMT 2000
Zack Weinberg <zack@wolery.cumb.org> writes:
> On Tue, Jan 11, 2000 at 06:20:32PM +0100, Niels Möller wrote:
> > I have a set of source files that are shared between w*ndows and unix
> > environments. The files are mostly edited under w*ndows.
[...]
> > Symptoms are "stray \ in program" errors followed by other parse
> > errors.
>
> This is a well known problem. No one's doing any real work on cccp,
> but cpplib has already been patched to handle DOS-style line breaks -
> you missed the 'else if' clause below the one you modified.
I tought to be an old wel known problem. That's why I was a little
surprised to encounter it...
> If you are prepared to build your own copy of the compiler, I suggest
> configuring with --enable-cpplib. You may then encounter genuine bugs
> which you should report.
Thanks for the hint. I'm reconfiguring now. I was honestly confused
about not finding any cpplib objects when I built with the default
configuration. *compiling*
Using cpplib seems to help. Thanks!
/Niels
More information about the Gcc-bugs
mailing list