GCC search path
Nathan England
nathan at paysonlinux.org
Wed Jun 15 14:32:20 MST 2011
WAHOOO!!!!!!
Ted, thank you.
I ran pkg-config --cflags xorg-server and it responded that dri2proto was
not installed... So I installed that and all is happy.
It was driving me batty because I had not done anything different, but
something wasn't working!!! I must have remove dri2proto at some point and
did not realize it. Thank you thank you!
On Wed, Jun 15, 2011 at 2:26 PM, Ted Gould <ted at gould.cx> wrote:
> 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 - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nathan England
I believe in the Constitution and the 4th Amendment. I am innocent and have
nothing to hide, but NO agent of the state crosses my threshhold without a
valid warrant signed by a judge and properly submitted. If we fail to
exercise our rights, we lose them.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20110615/752f0ec1/attachment.html>
More information about the PLUG-discuss
mailing list