Re: GCC search path

Top Page
Attachments:
Message as email
+ (text/plain)
+ signature.asc (application/pgp-signature)
+ (text/plain)
Delete this message
Reply to this message
Author: Ted Gould
Date:  
To: plug-discuss
Subject: Re: GCC search path
On Wed, 2011-06-15 at 13:07 -0700, Nathan England wrote:
> So my question is why isn't gcc finding the necessary .h files unless
> I tell it to include the directories within the /usr/include
> directory?


Because that's not how it works :-) It doesn't search for the file, it
just checks for it. So if you had:

#include <xorg/xorg-server.h>

That would work. The configure script is probably broken in this case
not to look for the appropriate pkgconfig file. That usually controls
the -I flags for a build. For instance you can do:

$ pkg-config --cflags xorg-server

And see where things are on your system. On my Ubuntu 11.04 system that
returns:

-fvisibility=hidden -I/usr/include/xorg -I/usr/include/pixman-1

        --Ted



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss