How to get compiler step using Gnu C compiler to find the X Window
header files?
I am trying to compile some older Unix code that uses X Windows (X11R6).
I installed the X11 files using the optional install on my system CD for
Mac OS X 10.4 (Mac Book Pro). The compile/link is done using a make file
and the Gnu C compiler in a Terminal. But including X Windows headers
doesn't work. First they're not in the usual Unix place (/usr/X11R6/),
but in the Developer folder under the root directory. If I use that
pathname, I still can't load other X Windows headers that are included
in those files since they are all referred to using the "shortcut"
X11/Xlib.h, etc. i.e. the compiler has to know what full path X11/
really defines. But I guess it's not defined. Not sure how to pass that
info to the compiler. Apple apparently wants X11 stuff in the developer
folder not /usr.
Anyone know how to get around this? How does one properly include X11
headers using a vanilla gcc compile in the Terminal? I did it with OS X
10.3, but I can't recall how since my old laptop died.
Thanks for any tips.
(Yes, I've googled for an hour and found nothing along the lines I need).
--
-- Lou Pecora