[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #22434] Consider a dependancy as target file and try to make the fi

From: Paul D. Smith
Subject: [bug #22434] Consider a dependancy as target file and try to make the file
Date: Sun, 07 Jun 2009 01:51:40 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/2009042513 Ubuntu/8.04 (hardy) Firefox/3.0.10

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:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]