Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Eclipse CDT, MinGW and "no endline in the file"

fre 2004-01-02 klockan 09.55 skrev a a:
> main.cpp compiles and is recognized, but when I add a class structure I got a warning "no endline at the end of the file", sometimes on the .cpp file, elsewhere from .h .

This is bug 26639:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=26639

You can vote for it if you like:

https://bugs.eclipse.org/bugs/votes.cgi?action=show_user&bug_id=26639

> But if I add another class, I got 2 warnings and the linker crashes.

If the linker crashes, that's the linker vendor's fault and should be
reported to them.  If the linker just fails to link however, that's
probably your fault.

> I have tried to add some new lines but with no result.

The files must end with newlines (just as the warning says).  Spaces
aren't newlines, so make sure the last character of the file really is a
newline and not space or TAB.

  Cheers //Johan



Back to the top