Re: Fw: [Dev-C++] No Newline At End of File
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Gerson L. <ja...@ya...> - 2005-02-01 18:30:06
|
Hello everybody!. Iv'e seen the messages for this issue. I think, that there is no problem at all with the code shown before, but, lokk at this: "2 C:\Dev-Cpp\Templates\states.c:70 [Warning] no newline at end of file How can a error that is supposed to occur at the end of the file occur in line 2 anyway? If anyone has any idea what is up here, please tell me." there is an #include in the line 2, isn't it? Remember what #include <filenme> does: it is like copy-pasting the contens of "filename" as it is, into your code. I mean, the error may be in <stdlib.h> or the file that you're including. Try to change the line in wich the include apears, move it to line 1, 3 ... etc. If the warnig seems to be always in the same line of the include, then the problem is in the included file, so find the file, make a backup copy and put the new-line at the end of the original.(be careful of modifying only that!), save, and compile... I've had similar problems, an that has been a solution. But, I don't give any warranty. Please tell me( all of us, really), how do you finally resolve it... Hoping to be helpful: Gerson. --------------------------------- |