Carriage return on preprocessor directive/ newline character
Posted: Thu Aug 15, 2002 1:04 pm
Hi,
I have been using Textpad. It is really a wonderful editor.
However, I have experienced some problems.
When I write my source code...typically C and C++ and
compile using gcc or g++ with the -Wall -pedantic flags
(I have to use these flags because of my school requirement),
errors such as
Warning : Carriage return on ....preprocessor directive
or file does not end with newline problems.
At my level of understanding, I got no idea what are these problems but the thing is I have to normally open my files
in a proper Unix editor eg vi, vim and resave the file and
the error will be gone.
I do not experience these errors if the same files are written
in a Unix editor.
Please advise
Sincerely
Paul
I have been using Textpad. It is really a wonderful editor.
However, I have experienced some problems.
When I write my source code...typically C and C++ and
compile using gcc or g++ with the -Wall -pedantic flags
(I have to use these flags because of my school requirement),
errors such as
Warning : Carriage return on ....preprocessor directive
or file does not end with newline problems.
At my level of understanding, I got no idea what are these problems but the thing is I have to normally open my files
in a proper Unix editor eg vi, vim and resave the file and
the error will be gone.
I do not experience these errors if the same files are written
in a Unix editor.
Please advise
Sincerely
Paul