An warring generated by the GCC

F

friendfish

Anyone can told me about the warrning which GCC generated as following:
"No newline at end of file"?
 
F

fnegroni

Anyone can told me about the warrning which GCC generated as following:
"No newline at end of file"?

By convention, in a Unix "text" file, all lines are terminated by the
newline character.
Most Unix text editors respect this convention.
gcc is warning you that the file is not conforming to the convention,
which means the last line might have been truncated and therefore you
should look into that as it is a potential problem.
 
P

Peter Nilsson

fnegroni said:
By convention, in a Unix "text" file, all lines are terminated by the
newline character.
Most Unix text editors respect this convention.
gcc is warning you that the file is not conforming to the convention,
which means the last line might have been truncated and therefore
you should look into that as it is a potential problem.

<http://groups.google.com/group/comp.lang.c/search?
group=comp.lang.c&q=No+newline+at+end+of+file>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top