Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: An warring ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 5 Topic 26112 of 26960
Post > Topic >>

Re: An warring generated by the GCC

by Jack Klein <jackklein@[EMAIL PROTECTED] > May 7, 2008 at 10:49 PM

On Thu, 08 May 2008 10:47:57 +0800, friendfish <friendfish@[EMAIL PROTECTED]
>
wrote in comp.lang.c:

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

The C standard states that "a source file that is non-empty shall end
in a new-line character" and your source file doesn't.  So add one.

Open the source file in a text editor.  Move the cursor to the end of
the last line, after the last character.  Press the "Enter" key on
your keyboard.  Save the file.

-- 
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.para****ft.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
 




 5 Posts in Topic:
An warring generated by the GCC
friendfish <friendfish  2008-05-08 10:47:57 
Re: An warring generated by the GCC
fnegroni <f.e.negroni@  2008-05-07 19:55:02 
Re: An warring generated by the GCC
Peter Nilsson <airia@[  2008-05-07 20:33:10 
Re: An warring generated by the GCC
Jack Klein <jackklein@  2008-05-07 22:49:22 
Re: An warring generated by the GCC
CBFalconer <cbfalconer  2008-05-08 17:39:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 16:43:01 CDT 2008.