help-make
[Top][All Lists]
Advanced

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

Re: dependency problem


From: Paul Smith
Subject: Re: dependency problem
Date: Wed, 27 Jun 2007 09:06:31 -0400

On Tue, 2007-06-26 at 11:08 +0530, Bhaskar G wrote:

> Hi All, 
> 
> Sorry for the incomplete question. I have src/bg.c and src/bg1.c. 
> src/bg2.c doenot exist. So when I run gmake I expect the error message
> "make: *** No rule to make target `src/bg2.o', needed by `bg.a'.
>  Stop." 
> 
> not  "cc src/bg.o src/bg1.o src/bg2.o -o bg.a 
> cc: src/bg2.o: No such file or directory 
> make: *** [bg.a] Error 1" 

> $(OBJS):makefile 

Maybe you have a stray TAB in your makefile after this line?

If that's not it you should use the -d option and see what make thinks
about the src/bg2.o target.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.paulandlesley.org
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




reply via email to

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