help-make
[Top][All Lists]
Advanced

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

RE: Library linking


From: Mark Galeck (CW)
Subject: RE: Library linking
Date: Mon, 3 Oct 2011 01:09:50 -0700

Oh I beg your pardon, I was not aware of this feature.  In that case, I am not 
qualified to answer your question.  

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Brendan Heading
Sent: Monday, October 03, 2011 1:08 AM
To: address@hidden
Subject: Re: Library linking

>>However, this complains that it can't find "-lhello".
>
>The GNU make manual in the Chapter "Introduction to Makefiles", section "How 
>Make Works", explains that to process the target of a rule, make >first 
>recursively processes the prerequisites.  In your case "-lhello" is a 
>prerequisite.  make tried to process it - since such a file did not exist and 
>>there was no rule with such a file as a target, make could not process it and 
>bombed.  Rewrite your rules so that they use only real files (or possibly 
>>phony files, after you study them in the manual), that either exist or make 
>knows how to make them recursively.

Mark,

I'm doing what it says in the manual :

http://www.gnu.org/software/make/manual/html_node/Libraries_002fSearch.html#Libraries_002fSearch

_______________________________________________
Help-make mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-make



reply via email to

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