Archive for the ‘C’ Category

Make “Unexpected end of line seen” Solution

Wednesday, March 25th, 2009

For Programming Concepts course our assignment requires us to use Make to compile and archive our programs for submission. Unfortunately I couldn’t get any of my makefiles to work, whenever I ran “Make” I’d get the rather unspecific error:

Unexpected end of line seen

The problem was occurring in Unix and Ubuntu Linux, so it wasn’t platform specific.

Solution

Use tabs (\t) instead of spaces. I have all of my text editors configured to use four spaces instead of \t because my university programming assignments always seem to state this requirement.

Replacing “    ” with “\t” did the trick for me.