Update of bug #22434 (project make):
Status: None => Not A Bug
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #6:
This problem is happening because in your Viewer.cpp file you say:
#include "Viewer"
Because of this, when automake generates the automated prerequisites for the
.o file (in src/.deps/) one of the prerequisites is the simple word "Viewer".
When make sees that prerequisite, it tries to build it. Make has no idea
that you really mean a header file here that it can't see: it looks for a file
"Viewer" and one doesn't exist, so it tries to build it. Make has a built-in
rule that says "you can build any program FOO from FOO.cpp", and since it
wants to build Viewer and it finds a Viewer.cpp... voila. It tries to compile
it and fails.
This may or may not be a bug, but if it is it's a problem in automake's
automated dependency generation, not GNU make.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22434>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-make