Help : File does not end with newline

Jeff Sturm jsturm@one-point.com
Sun Sep 30 09:40:00 GMT 2001


On Sun, 30 Sep 2001, Paul Lim wrote:
> However, I did not successful compile. The error message is
> diary.h:103: warning: file does not end in newline

This means the last few characters of diary.h are not a valid line
terminator, e.g. \n or \r\n.

> I am using gcc on Windows. Could OS be the problem?

Not directly.  But Windows does seem to have a plethora of broken editor
software.  Try to open/save this file in another source code editor, such
as emacs or even Windows Notepad.

Jeff



More information about the Gcc mailing list