Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > An warring generated by the GCC

Reply
Thread Tools

An warring generated by the GCC

 
 
friendfish
Guest
Posts: n/a
 
      05-08-2008
Anyone can told me about the warrning which GCC generated as following:
"No newline at end of file"?
 
Reply With Quote
 
 
 
 
fnegroni
Guest
Posts: n/a
 
      05-08-2008
On May 7, 7:47*pm, friendfish <friendf...@gmail.com> wrote:
> 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.
 
Reply With Quote
 
 
 
 
Peter Nilsson
Guest
Posts: n/a
 
      05-08-2008
fnegroni wrote:
> On May 7, 7:47�pm, friendfish <friendf...@gmail.com> wrote:
> > 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.


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

--
Peter
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No, you are warring MikeP C++ 0 05-15-2011 06:48 AM
GCC 3.4.3 and GCC 4.1.2 ashnin C++ 1 07-07-2008 01:10 PM
Template construction in old gcc 3.3.3 does not compile in gcc 3.4.4 eknecronzontas@yahoo.com C++ 5 09-17-2005 12:27 AM
gcc 2.95 and gcc 3.2 gouqizi.lvcha@gmail.com C++ 8 03-16-2005 02:34 AM
C99 structure initialization in gcc-2.95.3 vs gcc-3.3.1 Kevin P. Fleming C Programming 2 11-06-2003 05:15 AM



Advertisments