Re: Help on Makefile



Freeze wrote:
Hi, Dear group,

I am trying to compile some c++ files in unix. I got problems in
Makefile. The Makefile is like:

file: file.o test.o
g++ -o file file.o test.o
file.o: file.cpp
g++ -c file.cpp
test.o: test.cpp
g++ -c test.cpp


It keeps saying that:

mksh: Warning: newline is not last character in file Makefile


What could be the problem? Thank you!

The file doesn't end in a newline? Try adding one.

--
Ian Collins.
.



Relevant Pages

  • Re: To get the no. of rows from screen output.
    ... $ find -name Makefile ... Print newline, word, and byte counts for each FILE, and a total ... print the character counts ... will do the trick ...
    (comp.os.linux.misc)
  • Re: [PATCH v3] add MAX17040 Fuel Gauge driver
    ... This patch adds support the MAX17040 Fuel Gauge ... \ No newline at end of file ... Are we following any alphabetical order in this Makefile? ...
    (Linux-Kernel)
  • Re: [PATCH v3] add MAX17040 Fuel Gauge driver
    ... This patch adds support the MAX17040 Fuel Gauge ... \ No newline at end of file ... Are we following any alphabetical order in this Makefile? ...
    (Linux-Kernel)
  • Trivial fix for drivers/media/Makefile
    ... the Makefile. ... Due to this glitch, make clean invariably fails. ... \ No newline at end of file ...
    (Linux-Kernel)
  • Help on Makefile
    ... I am trying to compile some c++ files in unix. ... The Makefile is like: ... mksh: Warning: newline is not last character in file Makefile ...
    (comp.unix.solaris)