###Comments on the Makefile:
Comments on the Makefile:
I suggest adding the -g
flag, which enables debugging mode.
Moreover, I don't see why use c++
over g++
. On the other hand I don't see why not. See: g++ and c++ - SO
I usually create/compile the individual files separately, but in your case you seem to have only one file, thus no need for this option. To be precise, when I use this option, I then use clean to delete all object files. This has pros and cons, of course.
The drawback is that you have to compile every file again, but that is something that the computer does. The main advantage, IMHO, is that you don't put more files in the workspace, which might have already many files.