BUG? gcc and header search path

Sam Varshavchik mrsam at courier-mta.com
Sun Jan 25 17:50:34 UTC 2004


Ronny Buchmann writes:

> On Sunday 25 January 2004 17:46, Luciano Miguel Ferreira Rocha wrote:
>> On Sun, Jan 25, 2004 at 05:39:26PM +0100, Ronny Buchmann wrote:
>> > The problem: two versions of a library installed (one in /usr, other one
>> > in /usr/local), now I can't compile against the one in /usr, because gcc
>> > refuses to change the search order for /usr and /usr/local.
>>
>> Try option "-nostdinc", it tells gcc not to include the standard header
>> locations.
> Thanks, but it's not very useful with autoconf & co.
> 
> I hope there is a better solution.

The solution is to explicitly link against the absolute pathname.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20040125/0d7e8eb8/attachment.sig>


More information about the fedora-devel-list mailing list