This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
DOS compatibility problem
- To: gcc at gcc dot gnu dot org
- Subject: DOS compatibility problem
- From: Stane Gruden <staneg at rd dot iskraemeco dot si>
- Date: Fri, 02 Feb 2001 07:50:55 +0100
Hi,
I have a following problem: I tried to compile a file that was
edited under Windows. I was compiling with gcc under Linux.
The problem was with macros that
expand into more lines using the character '\'. This character
has to be the last in the line in order for preprocessor to
work correctly. Since in DOS the lines are terminated with
0x0D 0x0A, and in Linux only with 0x0A, the preprocessor
obviously treated 0x0D that was found in the file
as extra character, '\' not being the
last in line anymore and compilation reported an error.
Is there any option in gcc to solve this problem or do I have
to use some dos->unix converter? In case of converter needed,
does any tool exist that would convert entire directory trees
not only a single file like dos2unix?
Thanks in advance for an answer,
Stane Gruden, Kranj, Slovenia.
e-mail: staneg@rd.iskraemeco.si