GCC search path

Nathan England nathan at paysonlinux.org
Wed Jun 15 13:07:38 MST 2011


If I compile xf86-input-joystick-1.5.0 with

./configure --prefix=/usr

it fails with multiple cannot find this or that... but if I compile it with

CPPFLAGS="-I/usr/include/ -I/usr/include/xorg/ -I/usr/include/pixman-1/"
./configure --prefix=/usr

then it works great.

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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20110615/ad2d10a1/attachment.html>


More information about the PLUG-discuss mailing list