help-make
[Top][All Lists]
Advanced

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

Re: Library linking


From: Brendan Heading
Subject: Re: Library linking
Date: Mon, 3 Oct 2011 09:07:58 +0100

>>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



reply via email to

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