12undefinedundefined
i try to do a simple .c file and it says "warning: no newline at end of file" can someone tell me why? e-mail me if you want. thanks.
~MJ~
12undefinedundefined
i try to do a simple .c file and it says "warning: no newline at end of file" can someone tell me why? e-mail me if you want. thanks.
~MJ~
Perhaps you should add a new line to end the file.
Quzah.
Hope is the first step on the road to disappointment.
Where'd you get that idea?Originally Posted by quzah
That's just crazy enough to work.
If you post the code though MJ, people will have a better idea.
> If you post the code though MJ, people will have a better idea.
Because a missing newline shows up really well when posted on the board right?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Don't be silly, you can't post something that's missing.Originally Posted by Salem
If you post nothing in the woods, and no one is there to read it, does it generate a new line?
your first post here and that is the best you can come up with?Originally Posted by swampwaterwes
>your first post here and that is the best you can come up with?
I've seen worse.
My best code is written with the delete key.
Anyway...
The reason you should put a blank line at the end of your files is that when the preprocessor joins the suorces into a single file, you could get the last word of the header as part of the first word of the source file.
Adding a blank line avoids any problems you may have because of that. Also, it removes the warning.
SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
I say what I say, I mean what I mean.
IDE: emacs + make + gcc and proud of it.