gcc makefile error: “No rule to make target …”

That’s usually because you don’t have a file called vertex.cpp available to make. Check that: that file exists. you’re in the right directory when you make. Other than that, I’ve not much else to suggest. Perhaps you could give us a directory listing of that directory.

makefile:4: *** missing separator. Stop

make has a very stupid relationship with tabs. All actions of every rule are identified by tabs. And, no, four spaces don’t make a tab. Only a tab makes a tab. To check, I use the command cat -e -t -v makefile_name. It shows the presence of tabs with ^I and line endings with $. … Read more