Well, given the output, you should add the file to the make file (or Netbeans), which is not where it should be. Therefore, he thinks that this is an undeclared goal, as goals, on which the real goal depends, and .cpp files, on which the compilation goal depends, are on the same line. I would suggest that you make sure the makefile is in the right place, and therefore, if you follow the exact path, you must find the place where the file should be, or you are setting the vpath variable to look at the directory where the file should be . Else this may give further help as the error message sounds exactly the same.
source share